Filter out -ansi -pedantic from CFLAGS while compiling test programs for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
226f9e2698
commit
a27c7372a6
1 changed files with 3 additions and 1 deletions
|
|
@ -972,7 +972,9 @@ fi
|
|||
|
||||
guilesafe_CFLAGS=$CFLAGS
|
||||
guilesafe_LDFLAGS=$LDFLAGS
|
||||
CFLAGS="$CFLAGS $GUILEINCLUDE"
|
||||
# Filter out "-ansi -pedantic" because Guile header files will not compile with these flags.
|
||||
# (The flags -ansi -pedantic are automatically added by ac_compile_warnings.m4)
|
||||
CFLAGS="`echo $CFLAGS | sed 's/-ansi//g;s/-pedantic//g;'` $GUILEINCLUDE"
|
||||
LDFLAGS="$LDFLAGS $GUILELINK"
|
||||
|
||||
AC_MSG_CHECKING(whether Guile's gh_ API works)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue