mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Honor CXXFLAGS.
Submitted by: Pedro F. Giffuni <giffunip@yahoo.com>
This commit is contained in:
parent
ce2e837983
commit
c2df23aef7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85161
@ -26,7 +26,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libsuperlu.a:${PORTSDIR}/math/superlu
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500113
|
||||
USE_GCC= 2.95
|
||||
USE_GCC= 2.95 # 3.2 should also work !!
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
@ -63,7 +63,7 @@ post-patch:
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
@(cd ${WRKDIR}/tochnog/tools; ${CXX} ${CFLAGS} -o aba2tn aba2tn.cc)
|
||||
@(cd ${WRKDIR}/tochnog/tools; ${CXX} ${CXXFLAGS} -o aba2tn aba2tn.cc)
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tochnog ${PREFIX}/bin
|
||||
|
@ -29,7 +29,7 @@
|
||||
-COMPILER_FLAGS= -c -O2 -w-
|
||||
+COMPILER_C=$(CC)
|
||||
+COMPILER_CPP=$(CXX)
|
||||
+COMPILER_FLAGS=$(CFLAGS) -c
|
||||
+COMPILER_FLAGS=$(CXXFLAGS) -c
|
||||
OBJ=obj
|
||||
-LINK_FLAGS_BEFORE= -l$(F2C)
|
||||
+LINK_FLAGS_BEFORE= -l$(F2C) -L%%LOCALBASE%%/lib
|
||||
@ -72,7 +72,7 @@
|
||||
- "COMPILER_C=gcc" \
|
||||
- "COMPILER_CPP=g++" \
|
||||
- "COMPILER_FLAGS= -ansi -c -O2 -Wall $(PROFILE) $(ALL_INCLUDE)" \
|
||||
+ "COMPILER_FLAGS= -c ${CFLAGS} $(ALL_INCLUDE)" \
|
||||
+ "COMPILER_FLAGS= -c ${CXXFLAGS} $(ALL_INCLUDE)" \
|
||||
"LINK_FLAGS_BEFORE=" \
|
||||
"LINK_FLAGS_AFTER= $(PROFILE) $(ALL_LIB) -static -lm -o tochnog"
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
+ make tochnog \
|
||||
+ "SYS_FILE=sysposix" \
|
||||
+ "OBJ=o" \
|
||||
+ "COMPILER_FLAGS= -c ${CFLAGS} %%PTHREAD_CFLAGS%% -D_REENTRANT $(ALL_INCLUDE)" \
|
||||
+ "COMPILER_FLAGS= -c ${CXXFLAGS} %%PTHREAD_CFLAGS%% -D_REENTRANT $(ALL_INCLUDE)" \
|
||||
+ "LINK_FLAGS_BEFORE=" \
|
||||
+ "LINK_FLAGS_AFTER= $(ALL_LIB) %%PTHREAD_LIBS%% -static -lm -o tochnog"
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user