From b7373b6de5b41a4b420741da9ebf0570e36c11c7 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 24 May 2014 00:38:25 +0200 Subject: Improved CFLAGS/CPPFLAGS handling - Language extensions, such as _GNU_SOURCE are now enabled through CPPFLAGS by the configure script, rather than within the source code. - Moved some configure-time CFLAGS to CPPFLAGS, where appropriate. - Fixes bugreport:8211, thanks to Neoth http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux Signed-off-by: Haru --- src/login/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/login/Makefile.in') diff --git a/src/login/Makefile.in b/src/login/Makefile.in index 033dad25b..7551eed5f 100644 --- a/src/login/Makefile.in +++ b/src/login/Makefile.in @@ -1,6 +1,8 @@ # Copyright (c) Hercules Dev Team, licensed under GNU GPL. # See the LICENSE file +# @configure_input@ + CONFIG_D = ../config CONFIG_H = $(wildcard $(CONFIG_D)/*.h) $(wildcard $(CONFIG_D)/*/*.h) @@ -92,7 +94,7 @@ login-server: ../../login-server@EXEEXT@ obj_sql/%.o: %.c $(LOGIN_H) $(COMMON_H) $(CONFIG_H) $(MT19937AR_H) $(LIBCONFIG_H) | obj_sql @echo " CC $<" - @$(CC) @CFLAGS@ $(MT19937AR_INCLUDE) $(LIBCONFIG_INCLUDE) @MYSQL_CFLAGS@ @CPPFLAGS@ -c $(OUTPUT_OPTION) $< + @$(CC) @CFLAGS@ @DEFS@ $(MT19937AR_INCLUDE) $(LIBCONFIG_INCLUDE) @MYSQL_CFLAGS@ @CPPFLAGS@ -c $(OUTPUT_OPTION) $< # missing object files $(COMMON_D)/obj_all/common.a: -- cgit v1.2.3-70-g09d2