1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Use ${LDFLAGS} instead of constructing -L${LOCALBASE}/lib/${CC} manually

(plus this now also provides proper -rpath for GCC runtime libraries).

Approved by:	thierry (maintainer)
This commit is contained in:
Gerald Pfeifer 2014-02-23 20:50:10 +00:00
parent 707ecd6c33
commit 9a39e05f90
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345763

View File

@ -261,7 +261,7 @@ pre-configure:
.endif
${ECHO_CMD} "CC='${CC}'" >> ${WRKSRC}/setup.cfg
${ECHO_CMD} "CXX='${CXX}'" >> ${WRKSRC}/setup.cfg
${ECHO_CMD} "CXXLIB = '-L${LOCALBASE}/lib/${CC} -lstdc++ -lsupc++'" \
${ECHO_CMD} "CXXLIB = '${LDFLAGS} -lstdc++ -lsupc++'" \
>> ${WRKSRC}/setup.cfg
${ECHO_CMD} "LD='${FC}'" >> ${WRKSRC}/setup.cfg
${ECHO_CMD} "F90='${LOCALBASE}/bin/${FC}'" >> ${WRKSRC}/setup.cfg