1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Small changes on the way to making it clang compliant.

This commit is contained in:
Stephen Montgomery-Smith 2014-05-17 02:22:21 +00:00
parent 45e981a273
commit 9ff57fd18a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354274
2 changed files with 4 additions and 4 deletions

View File

@ -74,17 +74,17 @@ post-patch:
# Create the wrappers for the compiler invocations.
@${MKDIR} ${WRKSRC}/local/bin
@${LN} -s -f ${LOCALBASE}/bin/gmake ${WRKSRC}/local/bin/make
@${SED} -e 's#%%CC%%#${LOCALBASE}/bin/${CC}#' \
@${SED} -e "s#%%CC%%#`which ${CC}`#" \
-e 's#%%LDFLAGS%%#${LDFLAGS} ${FPM_FLAG}#' \
${FILESDIR}/gcc.in > ${WRKSRC}/local/bin/cc
@${CHMOD} +x ${WRKSRC}/local/bin/cc
@${LN} -s -f cc ${WRKSRC}/local/bin/gcc
@${SED} -e 's#%%CC%%#${LOCALBASE}/bin/${CXX}#' \
@${SED} -e "s#%%CC%%#`which ${CXX}`#" \
-e 's#%%LDFLAGS%%#${LDFLAGS} ${FPM_FLAG}#' \
${FILESDIR}/gcc.in > ${WRKSRC}/local/bin/c++
@${CHMOD} +x ${WRKSRC}/local/bin/c++
@${LN} -s -f c++ ${WRKSRC}/local/bin/g++
@${SED} -e 's#%%CC%%#${LOCALBASE}/bin/${FC}#' \
@${SED} -e "s#%%CC%%#`which ${FC}`#" \
-e 's#%%LDFLAGS%%#${LDFLAGS} ${FPM_FLAG}#' \
${FILESDIR}/gcc.in > ${WRKSRC}/local/bin/gfortran
@${CHMOD} +x ${WRKSRC}/local/bin/gfortran

View File

@ -8,7 +8,7 @@
+ fi
+
+- MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
++ MK_SHARED_LIB='${CC} -shared -Bshareable -soname=`basename $@` -o $@'
++ MK_SHARED_LIB='${CC} -shared -Bshareable -Wl,-soname=`basename $@` -o $@'
+ ;;
+ netbsd*) #(vi
+ CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"