Reduce CFLAGS abuse a little for mingw targets.

This fixes missing debug info (useful for fixing linker errors, if nothing
else).
This commit is contained in:
Bill Currie 2013-01-28 16:21:42 +09:00
parent dffe1598b8
commit c6f9d8b64c
5 changed files with 7 additions and 5 deletions

View file

@ -1,8 +1,9 @@
endian=""
FNM_FLAGS=""
case "$host_os" in
mingw32*)
mingw=yes
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32"
FNM_FLAGS="-I\$(top_srcdir)/include/win32"
if test "x$host" != "x$build"; then
case "$build_os" in
cygwin*)
@ -24,3 +25,4 @@ case "$host_os" in
fi
;;
esac
AC_SUBST(FNM_FLAGS)

View file

@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS= foreign
AM_CFLAGS= @PREFER_PIC@
INCLUDES= -I$(top_srcdir)/include
INCLUDES= -I$(top_srcdir)/include $(FNM_FLAGS)
plugin_ldflags= @plugin_ldflags@ -avoid-version -module -rpath $(plugindir)
plugin_libadd= @plugin_libadd@
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \

View file

@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS= foreign
AM_CFLAGS= @PREFER_PIC@
INCLUDES= -I$(top_srcdir)/include
INCLUDES= -I$(top_srcdir)/include $(FNM_FLAGS)
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \
-rpath $(libdir) -no-undefined

View file

@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS= foreign
AM_CFLAGS= @PREFER_PIC@
INCLUDES= -I$(top_srcdir)/include
INCLUDES= -I$(top_srcdir)/include $(FNM_FLAGS)
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \
-rpath $(libdir) -no-undefined

View file

@ -4,7 +4,7 @@ SUBDIRS= . test
AM_CFLAGS= @PREFER_PIC@
CCASFLAGS+= @PREFER_PIC@
INCLUDES= -I$(top_srcdir)/include $(Z_CFLAGS)
INCLUDES= -I$(top_srcdir)/include $(Z_CFLAGS) $(FNM_FLAGS)
lib_LTLIBRARIES= libQFutil.la