Allow custom compiler flags for znc-buildmod via environment variables. Patch from flakes.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1312 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2008-12-30 18:49:47 +00:00
parent b7f38c4d4a
commit e16f744ed8
+3 -3
View File
@@ -42,9 +42,9 @@ if test -z "$1"; then
exit 1
fi
CXXFLAGS=`${ZNC_CONFIG} --cflags`
INCLUDES=`${ZNC_CONFIG} --include`
LIBS=`${ZNC_CONFIG} --libs`
CXXFLAGS="`${ZNC_CONFIG} --cflags` $CXXFLAGS"
INCLUDES="`${ZNC_CONFIG} --include` $INCLUDES"
LIBS="`${ZNC_CONFIG} --libs` $LIBS"
# Get the first word and strip away the first two chars (which is -I)
INC_PATH=`echo ${INCLUDES} | ${SED} 's: .*::' | ${SED} 's:^..::'`