Allow passing linker flags via LDFLAGS in Makefile
This commit is contained in:
parent
53e036319d
commit
bf40ec1d5d
|
@ -115,11 +115,12 @@ OBJS = main.o monitor.o mail.o plugins.o glib.o utils.o sysdeps-unix.o log.o
|
|||
all: gkrellmd
|
||||
|
||||
gkrellmd: $(OBJS) $(EXTRAOBJS)
|
||||
$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd $(LIBS) $(LINK_FLAGS)
|
||||
$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd \
|
||||
$(LDFLAGS) $(LIBS) $(LINK_FLAGS)
|
||||
|
||||
static: $(OBJS) $(EXTRAOBJS)
|
||||
$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd.static -static \
|
||||
$(LIBS) $(LINK_FLAGS)
|
||||
$(LDFLAGS) $(LIBS) $(LINK_FLAGS)
|
||||
|
||||
freebsd2:
|
||||
$(MAKE) GTK_CONFIG=gtk12-config \
|
||||
|
|
|
@ -115,11 +115,12 @@ UNIXOBJS = winops-x11.o
|
|||
all: gkrellm
|
||||
|
||||
gkrellm: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
|
||||
$(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm $(LIBS) $(LINK_FLAGS)
|
||||
$(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm \
|
||||
$(LDFLAGS) $(LIBS) $(LINK_FLAGS)
|
||||
|
||||
static: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
|
||||
$(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm.static -static \
|
||||
$(LIBS) $(LINK_FLAGS)
|
||||
$(LDFLAGS) $(LIBS) $(LINK_FLAGS)
|
||||
|
||||
freebsd2:
|
||||
ifeq ($(HAVE_SSL),1)
|
||||
|
|
Loading…
Reference in New Issue