packages/admin/pmacct/patches/001-honor_cflags.patch
florian 3082d0ac3d [package] update pmacct to 0.12.5
This patch update pmacct from 0.10.3 (21-06-2006) to 0.12.5 (28-12-2010)

Thanks in advance.

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@26336 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-28 21:22:19 +00:00

21 lines
465 B
Diff

--- a/configure
+++ b/configure
@@ -1083,7 +1083,7 @@ fi
if test "x$ac_cv_prog_gcc" = xyes ; then
- CFLAGS="-O2"
+ CFLAGS="-O2 ${CFLAGS}"
case "$host_os" in
IRIX*)
CFLAGS="-mabi=n32 -fno-builtins ${CFLAGS}"
@@ -1097,7 +1097,7 @@ else
LDFLAGS="-n32 -L/usr/lib32 -L/usr/freeware/lib32 ${LDFLAGS}"
;;
OSF*)
- CFLAGS="-O -assume noaligned_objects"
+ CFLAGS="-O -assume noaligned_objects ${CFLAGS}"
;;
esac
fi