From 15ddd9078769b8c866061a8f715f5dbdcea66fd0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 1 Mar 2011 00:44:05 +0100 Subject: [PATCH] Use SSL_CPPFLAGS only for compiling crypt.c The previous cleanups moved everything which depends on openssl to crypt.c. This is now the only file which includes openssl headers, so there is no need to compile all objects with the ssl cpp flags. In fact this could break things for setups on which the include dir for openss contains other unwanted header files. --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index e6b6ecc2..8526716d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -54,7 +54,6 @@ CPPFLAGS += -Wunused-macros CPPFLAGS += -Wbad-function-cast CPPFLAGS += -fno-strict-aliasing CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) -CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@ CPPFLAGS += @arch_cppflags@ CPPFLAGS += -I/usr/local/include @@ -156,6 +155,9 @@ $(object_dir): $(man_dir): mkdir -p $@ +$(object_dir)/crypt.o: crypt.c | $(object_dir) + @[ -z "$(Q)" ] || echo 'CC $<' + $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @SSL_CPPFLAGS@ $< $(object_dir)/spx_common.o: spx_common.c | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ogg_cppflags@ $< -- 2.39.5