Permalink
Browse files

Respect CFLAGS. Fixes #526

Found by: sbraz
Patch by: michaelortmann
  • Loading branch information...
michaelortmann authored and vanosg committed Aug 29, 2018
1 parent e1b3c9d commit 2df8a44caeb8ddf54b9c5d3cff689dde429c06f5
View
@@ -41,7 +41,7 @@ linkstart:
touch mod/mod.xlibs
link:
$(LD) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs`
$(LD) $(CFLAGS) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs`
linkfinish:
@$(STRIP) ../$(EGGEXEC) && \
@@ -17,7 +17,7 @@ modules: ../../../assoc.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/assoc.c && mv -f assoc.o ../
../../../assoc.$(MOD_EXT): ../assoc.o
$(LD) -o ../../../assoc.$(MOD_EXT) ../assoc.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../assoc.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../assoc.$(MOD_EXT) ../assoc.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../assoc.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/assoc.c -MT ../assoc.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../blowfish.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/blowfish.c && mv -f blowfish.o ../
../../../blowfish.$(MOD_EXT): ../blowfish.o
$(LD) -o ../../../blowfish.$(MOD_EXT) ../blowfish.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../blowfish.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../blowfish.$(MOD_EXT) ../blowfish.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../blowfish.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/blowfish.c -MT ../blowfish.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../channels.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/channels.c && mv -f channels.o ../
../../../channels.$(MOD_EXT): ../channels.o
$(LD) -o ../../../channels.$(MOD_EXT) ../channels.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../channels.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../channels.$(MOD_EXT) ../channels.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../channels.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/channels.c -MT ../channels.o > .depend
@@ -19,7 +19,7 @@ modules: ../../../compress.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/compress.c && mv -f compress.o ../
../../../compress.$(MOD_EXT): ../compress.o
$(LD) -o ../../../compress.$(MOD_EXT) ../compress.o $(ZLIB) $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../compress.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../compress.$(MOD_EXT) ../compress.o $(ZLIB) $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../compress.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/compress.c -MT ../compress.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../console.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/console.c && mv -f console.o ../
../../../console.$(MOD_EXT): ../console.o
$(LD) -o ../../../console.$(MOD_EXT) ../console.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../console.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../console.$(MOD_EXT) ../console.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../console.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/console.c -MT ../console.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../ctcp.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/ctcp.c && mv -f ctcp.o ../
../../../ctcp.$(MOD_EXT): ../ctcp.o
$(LD) -o ../../../ctcp.$(MOD_EXT) ../ctcp.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../ctcp.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../ctcp.$(MOD_EXT) ../ctcp.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../ctcp.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/ctcp.c -MT ../ctcp.o > .depend
@@ -20,7 +20,7 @@ modules: ../../../dns.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) $(RESINCLUDE) -DMAKING_MODS -c $(srcdir)/dns.c && mv -f dns.o ../
../../../dns.$(MOD_EXT): ../dns.o
$(LD) -o ../../../dns.$(MOD_EXT) ../dns.o $(RESLIB) $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../dns.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../dns.$(MOD_EXT) ../dns.o $(RESLIB) $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../dns.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/dns.c -MT ../dns.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../filesys.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/filesys.c && mv -f filesys.o ../
../../../filesys.$(MOD_EXT): ../filesys.o
$(LD) -o ../../../filesys.$(MOD_EXT) ../filesys.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../filesys.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../filesys.$(MOD_EXT) ../filesys.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../filesys.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/filesys.c -MT ../filesys.o > .depend
View
@@ -17,7 +17,7 @@ modules: ../../../irc.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/irc.c && mv -f irc.o ../
../../../irc.$(MOD_EXT): ../irc.o
$(LD) -o ../../../irc.$(MOD_EXT) ../irc.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../irc.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../irc.$(MOD_EXT) ../irc.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../irc.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/irc.c -MT ../irc.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../notes.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/notes.c && mv -f notes.o ../
../../../notes.$(MOD_EXT): ../notes.o
$(LD) -o ../../../notes.$(MOD_EXT) ../notes.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../notes.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../notes.$(MOD_EXT) ../notes.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../notes.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/notes.c -MT ../notes.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../seen.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/seen.c && mv -f seen.o ../
../../../seen.$(MOD_EXT): ../seen.o
$(LD) -o ../../../seen.$(MOD_EXT) ../seen.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../seen.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../seen.$(MOD_EXT) ../seen.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../seen.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/seen.c -MT ../seen.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../server.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/server.c && mv -f server.o ../
../../../server.$(MOD_EXT): ../server.o
$(LD) -o ../../../server.$(MOD_EXT) ../server.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../server.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../server.$(MOD_EXT) ../server.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../server.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/server.c -MT ../server.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../share.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/share.c && mv -f share.o ../
../../../share.$(MOD_EXT): ../share.o
$(LD) -o ../../../share.$(MOD_EXT) ../share.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../share.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../share.$(MOD_EXT) ../share.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../share.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/share.c -MT ../share.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../transfer.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/transfer.c && mv -f transfer.o ../
../../../transfer.$(MOD_EXT): ../transfer.o
$(LD) -o ../../../transfer.$(MOD_EXT) ../transfer.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../transfer.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../transfer.$(MOD_EXT) ../transfer.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../transfer.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/transfer.c -MT ../transfer.o > .depend
@@ -16,7 +16,7 @@ modules: ../../../uptime.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/uptime.c && mv -f uptime.o ../
../../../uptime.$(MOD_EXT): ../uptime.o
$(LD) -o ../../../uptime.$(MOD_EXT) ../uptime.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../uptime.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../uptime.$(MOD_EXT) ../uptime.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../uptime.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/uptime.c -MT ../uptime.o > .depend
@@ -17,7 +17,7 @@ modules: ../../../woobie.$(MOD_EXT)
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/woobie.c && mv -f woobie.o ../
../../../woobie.$(MOD_EXT): ../woobie.o
$(LD) -o ../../../woobie.$(MOD_EXT) ../woobie.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../woobie.$(MOD_EXT)
$(LD) $(CFLAGS) -o ../../../woobie.$(MOD_EXT) ../woobie.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../woobie.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/woobie.c -MT ../woobie.o > .depend

0 comments on commit 2df8a44

Please sign in to comment.