mirror of
https://github.com/moparisthebest/sslh
synced 2024-11-13 12:45:05 -05:00
Makefile: fix LDFLAGS handling
We need these flags to come before all the objects, not after. Otherwise, flags that impact handling of input objects do not show up in time. This also matches standard build system behavior (e.g. autotools). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
7008a1ede4
commit
4fafb3d376
8
Makefile
8
Makefile
@ -18,7 +18,7 @@ endif
|
||||
CC ?= gcc
|
||||
CFLAGS ?=-Wall -g $(CFLAGS_COV)
|
||||
|
||||
LIBS=$(LDFLAGS)
|
||||
LIBS=
|
||||
OBJS=common.o sslh-main.o probe.o
|
||||
|
||||
ifneq ($(strip $(USELIBWRAP)),)
|
||||
@ -42,15 +42,15 @@ version.h:
|
||||
sslh: $(OBJS) sslh-fork sslh-select
|
||||
|
||||
sslh-fork: $(OBJS) sslh-fork.o Makefile common.h version.h
|
||||
$(CC) $(CFLAGS) -o sslh-fork sslh-fork.o $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o sslh-fork sslh-fork.o $(OBJS) $(LIBS)
|
||||
#strip sslh-fork
|
||||
|
||||
sslh-select: $(OBJS) sslh-select.o Makefile common.h version.h
|
||||
$(CC) $(CFLAGS) -o sslh-select sslh-select.o $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o sslh-select sslh-select.o $(OBJS) $(LIBS)
|
||||
#strip sslh-select
|
||||
|
||||
echosrv: $(OBJS) echosrv.o
|
||||
$(CC) $(CFLAGS) -o echosrv echosrv.o probe.o common.o $(LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o echosrv echosrv.o probe.o common.o $(LIBS)
|
||||
|
||||
$(MAN): sslh.pod Makefile
|
||||
pod2man --section=8 --release=$(VERSION) --center=" " sslh.pod | gzip -9 - > $(MAN)
|
||||
|
Loading…
Reference in New Issue
Block a user