mirror of
https://github.com/znc/znc.git
synced 2026-05-09 23:04:47 +02:00
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:
+3
-3
@@ -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:^..::'`
|
||||
|
||||
Reference in New Issue
Block a user