mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
This fails with Clang on 8.4-amd64. Just stick with GCC for now since it is
working everywhere.
This commit is contained in:
parent
d267cdd01a
commit
5ccdf4acb6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382281
1 changed files with 6 additions and 9 deletions
|
@ -24,7 +24,8 @@ LICENSE_PERMS_COMMERCIAL= dist-mirror dist-sell pkg-mirror pkg-sell no-auto-acce
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= i386 amd64
|
ONLY_FOR_ARCHS= i386 amd64
|
||||||
|
|
||||||
USES= zip compiler:c++0x
|
USES= zip
|
||||||
|
USE_GCC= yes
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
EXTRACT_BEFORE_ARGS= -j -L -q
|
EXTRACT_BEFORE_ARGS= -j -L -q
|
||||||
|
@ -41,22 +42,18 @@ BUILDCMD= linux
|
||||||
BUILDCMD= linux64
|
BUILDCMD= linux64
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${ARCH} == "amd64"
|
||||||
|
CFLAGS+= -fPIC
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
# C{C,XX} safeness
|
# C{C,XX} safeness
|
||||||
# CFLAGS safeness
|
# CFLAGS safeness
|
||||||
.if ${ARCH} == "i386"
|
|
||||||
@${REINPLACE_CMD} -E \
|
@${REINPLACE_CMD} -E \
|
||||||
-e 's|gcc|${CC}|' \
|
-e 's|gcc|${CC}|' \
|
||||||
-e 's|g\+\+|${CXX}|' \
|
-e 's|g\+\+|${CXX}|' \
|
||||||
-e 's|-O2|${CFLAGS}|' \
|
-e 's|-O2|${CFLAGS}|' \
|
||||||
${WRKSRC}/${BUILDCMD}
|
${WRKSRC}/${BUILDCMD}
|
||||||
.else
|
|
||||||
@${REINPLACE_CMD} -E \
|
|
||||||
-e 's|gcc|${CC}|' \
|
|
||||||
-e 's|g\+\+|${CXX}|' \
|
|
||||||
-e 's|-O2|${CFLAGS} -fPIC|' \
|
|
||||||
${WRKSRC}/${BUILDCMD}
|
|
||||||
.endif
|
|
||||||
# Don't error when files not found
|
# Don't error when files not found
|
||||||
# Fix mrmuldv.cc not existing due to s/gcc/CC/ replacement above.
|
# Fix mrmuldv.cc not existing due to s/gcc/CC/ replacement above.
|
||||||
@${REINPLACE_CMD} -E \
|
@${REINPLACE_CMD} -E \
|
||||||
|
|
Loading…
Add table
Reference in a new issue