diff options
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/mkpkgconfig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build_tools/mkpkgconfig b/build_tools/mkpkgconfig index 0ae2a24bf..bc04f7561 100755 --- a/build_tools/mkpkgconfig +++ b/build_tools/mkpkgconfig @@ -15,11 +15,11 @@ fi ## Clean out CFLAGS for the spec file. -LOCAL_CFLAGS=`echo $CFLAGS | sed -e 's/\s*-pipe\s*//g' | sed -e 's/-[Wmp]\S*\s*//g' | \ - sed -r -e 's/-I(include|\.\.\/include) //g' | \ - sed -e 's/-DINSTALL_PREFIX=\S* //g' | \ - sed -r -e 's/-DASTERISK_VERSION=\S* //g' | \ - sed -r -e 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'` +LOCAL_CFLAGS=`echo $CFLAGS | sed -e 's/[[:space:]]*-pipe[[:space:]]*//g' | sed -e 's/-[Wmp][^[:space:]]*[[:space:]]*//g' | \ + sed -e 's/-I\(include|\.\.\/include\) //g' | \ + sed -e 's/-DINSTALL_PREFIX=[^[:space:]]* //g' | \ + sed -e 's/-DASTERISK_VERSION=[^[:space:]]* //g' | \ + sed -e 's/-DAST\(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR\)=[^[:space:]]* //g'` cat <<EOF > $PPATH/asterisk.pc |