Honor CXXFLAGS.

Submitted by:	Pedro F. Giffuni <giffunip@yahoo.com>
This commit is contained in:
Maho Nakata 2003-07-19 00:50:39 +00:00
parent ce2e837983
commit c2df23aef7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85161
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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"
+