Use CFLAGS_
This commit is contained in:
parent
f2658ab325
commit
bab2e760e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337707
1 changed files with 3 additions and 4 deletions
|
@ -27,6 +27,9 @@ PLIST_FILES= lib/xmms/Input/libsap.so
|
||||||
|
|
||||||
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
||||||
|
|
||||||
|
CFLAGS_amd64= -fpic -DPIC
|
||||||
|
CFLAGS_ia64= -fpic -DPIC
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
# clang can build this without -fno-exceptions
|
# clang can build this without -fno-exceptions
|
||||||
|
@ -34,10 +37,6 @@ OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
||||||
CXXFLAGS+= -fno-exceptions
|
CXXFLAGS+= -fno-exceptions
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
||||||
CFLAGS+= -fpic -DPIC
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
||||||
CXXFLAGS+= -fPIC -fpic -funroll-all-loops -fno-strength-reduce \
|
CXXFLAGS+= -fPIC -fpic -funroll-all-loops -fno-strength-reduce \
|
||||||
-finline-functions -fomit-frame-pointer
|
-finline-functions -fomit-frame-pointer
|
||||||
|
|
Loading…
Reference in a new issue