Commit 40bd15d0 authored by Alessandro Ghedini's avatar Alessandro Ghedini

Drop 01_honour-build-flags.patch (not needed anymore)

parent 3b3bda9a
Description: Always honour CFLAGS, CPPFLAGS and LDFLAGS
Origin: vendor
Forwarded: no
Author: Alessandro Ghedini <ghedo@debian.org>
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2012-06-03
--- a/configure.inc
+++ b/configure.inc
@@ -405,23 +405,15 @@
if [ "$CFLAGS" ]; then
test "$CFLAGS" && echo "validating CFLAGS=${CFLAGS}"
- if $AC_CC $CFLAGS -o ngc$$.o ngc$$.c ; then
- AC_CFLAGS=${CFLAGS:-"-g"}
- test "$CFLAGS" && echo "CFLAGS=\"${CFLAGS}\" are okay"
- elif [ "$CFLAGS" ]; then
- echo "ignoring bogus CFLAGS=\"${CFLAGS}\""
- fi
+ AC_CFLAGS=${CFLAGS:-"-g"}
+ test "$CFLAGS" && echo "CFLAGS=\"${CFLAGS}\" are okay"
else
AC_CFLAGS=-g
fi
if [ "$LDFLAGS" ]; then
test "$LDFLAGS" && echo "validating LDFLAGS=${LDFLAGS}"
- if $AC_CC $LDFLAGS -o ngc$$ ngc$$.o; then
- AC_LDFLAGS=${LDFLAGS:-"-g"}
- test "$LDFLAGS" && TLOG "LDFLAGS=\"${LDFLAGS}\" are okay"
- elif [ "$LDFLAGS" ]; then
- TLOG "ignoring bogus LDFLAGS=\"${LDFLAGS}\""
- fi
+ AC_LDFLAGS=${LDFLAGS:-"-g"}
+ test "$LDFLAGS" && TLOG "LDFLAGS=\"${LDFLAGS}\" are okay"
else
AC_LDFLAGS=${CFLAGS:-"-g"}
fi
@@ -1355,7 +1347,7 @@
FULLNAME="\$LIBNAME.\$VERSION"
case "\$ACTION" in
-make) FLAGS="$AC_CFLAGS -shared"
+make) FLAGS="$AC_CFLAGS $AC_LDFLAGS -shared"
unset VFLAGS
test "$USE_SONAME" && VFLAGS="-Wl,-soname,\$LIBNAME.\$MAJOR"
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,5 +1,5 @@
CC=@CC@ -I.
-LFLAGS=-L.
+LFLAGS=-L. $(LDFLAGS)
CFLAGS=@CFLAGS@
AR=@AR@
RANLIB=@RANLIB@
01_honour-build-flags.patch
03_fix-typo.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment