diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-01-21 12:00:52 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-01-21 12:00:52 +0000 |
commit | 6e4ddd6d247fd54cc36be7bea2980b94780f7a75 (patch) | |
tree | d43dc49e248d90d1acaafb0ea2c341e81c562366 /sci-libs/hdf/files | |
parent | Based on 3.1.10 + genpatches-3.1-12 + 2.2.2-3.1.10-201201201822 (diff) | |
download | historical-6e4ddd6d247fd54cc36be7bea2980b94780f7a75.tar.gz historical-6e4ddd6d247fd54cc36be7bea2980b94780f7a75.tar.bz2 historical-6e4ddd6d247fd54cc36be7bea2980b94780f7a75.zip |
Remove braindamaged flag stripping to respect CC properly
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/hdf/files')
-rw-r--r-- | sci-libs/hdf/files/4.2.6-autotools.patch | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sci-libs/hdf/files/4.2.6-autotools.patch b/sci-libs/hdf/files/4.2.6-autotools.patch index 67b0d279d8c5..994bcd264ac4 100644 --- a/sci-libs/hdf/files/4.2.6-autotools.patch +++ b/sci-libs/hdf/files/4.2.6-autotools.patch @@ -30,7 +30,7 @@ AC_ARG_WITH([szlib], [AC_HELP_STRING([--with-szlib=DIR], [Use szlib library [default=no]])],, -@@ -702,7 +687,7 @@ +@@ -702,7 +688,7 @@ dnl ====================================================================== dnl Libtool initialization dnl ====================================================================== @@ -39,7 +39,7 @@ LT_OUTPUT dnl ====================================================================== -@@ -780,11 +765,6 @@ +@@ -780,11 +766,6 @@ dnl ------------------------------------------------------------------------ dnl Check to see if libtool has enabled shared libraries. Set a conditional dnl as some Makefiles will build based on availability of shared libraries. @@ -51,7 +51,18 @@ dnl ------------------------------------------------------------------------ dnl Specify shared library extension the host machine should recognize. -@@ -841,26 +821,7 @@ +@@ -814,10 +795,6 @@ + dnl Report anything stripped as a flag in CFLAGS and + dnl only the compiler in CC_VERSION. + CC_NOFLAGS=`echo $CC | sed 's/ -.*//'` +-CFLAGS_TO_ADD=`echo $CC | grep - | sed 's/.* -/-/'` +-if test -n $CFLAGS_TO_ADD; then +- CFLAGS="$CFLAGS_TO_ADD$CFLAGS" +-fi + + if `echo $CC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then + CC_VERSION="$CC_NOFLAGS" +@@ -841,26 +818,7 @@ dnl Strip anything that looks like a flag off of $F77 dnl Report anything stripped as a flag in RFLAGS and dnl only the compiler in F77_VERSION. |