mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Don't try to use eg++ as the C++ compiler and honor CXXFLAGS.
This commit is contained in:
parent
8753dd350d
commit
69ed7d4abb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28823
@ -17,7 +17,9 @@ ALL_TARGET= lib
|
||||
INSTALL_TARGET= lib
|
||||
USE_GMAKE= yes
|
||||
|
||||
BROKEN= "Tries to run eg++"
|
||||
post-patch:
|
||||
@( cd ${WRKSRC}; ${SED} -e 's/%%CXXFLAGS%%/${CXXFLAGS}/g' \
|
||||
-e 's/%%CXX%%/${CXX}/g' c++ > c++.sed; mv c++.sed c++; ${CHMOD} +x c++ )
|
||||
|
||||
post-install:
|
||||
$(INSTALL_DATA) ${WRKSRC}/libla.a ${PREFIX}/lib
|
||||
|
11
math/linalg/files/patch-aa
Normal file
11
math/linalg/files/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- c++.orig Sat May 27 17:48:43 2000
|
||||
+++ c++ Sat May 27 17:50:10 2000
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# GNU C++ compilation
|
||||
# Note, ${foo:+bar} is just a weird way of commenting out bar
|
||||
-eg++ -c -O2 -fkeep-inline-functions -pipe -W -Wall -Wpointer-arith -ffor-scope -Woverloaded-virtual \
|
||||
+%%CXX%% -c %%CXXFLAGS%% -fkeep-inline-functions -pipe -W -Wall -Wpointer-arith -ffor-scope -Woverloaded-virtual \
|
||||
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
|
||||
${foo:+'-Wold-style-cast'} -Wbad-function-cast -Wwrite-strings \
|
||||
${foo:+'-Winline -Wredundant-decls'} -fno-rtti ${fpp:+'-fno-exceptions'} \
|
Loading…
Reference in New Issue
Block a user