ledmon/Makefile-error-dependency.patch

27 lines
888 B
Diff
Raw Normal View History

Index: ledmon-0.79/src/Makefile
===================================================================
--- ledmon-0.79.orig/src/Makefile
+++ ledmon-0.79/src/Makefile
@@ -56,7 +56,7 @@ LEDCTL_OBJECTS=\
$(OBJECTS)
CFLAGS=-O0 -g -Wall
-DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE
+DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE
INCFLAGS=-I../config
LDFLAGS=-O0 -g $(DEFFLAGS) -lsgutils2
@@ -65,10 +65,10 @@ SOURCES:=$(shell find -name "*.[cC]" -pr
default: all
ledmon: $(OUTDIR)/.depend $(LEDMON_OBJECTS)
- $(CC) $(LDFLAGS) $(LDLIBS) $(LEDMON_OBJECTS) -o $@
+ $(CC) $(LDLIBS) $(LEDMON_OBJECTS) -o $@ $(LDFLAGS)
ledctl: $(OUTDIR)/.depend $(LEDCTL_OBJECTS)
- $(CC) $(LDFLAGS) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@
+ $(CC) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@ $(LDFLAGS)
$(OUTDIR)/%.o: %.c
$(CC) $(CFLAGS) $(DEFFLAGS) $(INCFLAGS) -c $< -o $@