Allow passing linker flags via LDFLAGS in Makefile

This commit is contained in:
Stefan Gehn 2010-06-12 14:10:52 +00:00
parent 53e036319d
commit bf40ec1d5d
2 changed files with 6 additions and 4 deletions

View File

@ -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 \

View File

@ -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)