diff --git a/procps-3.2.8.dif b/procps-3.2.8.dif new file mode 100644 index 0000000..6805347 --- /dev/null +++ b/procps-3.2.8.dif @@ -0,0 +1,27 @@ +--- Makefile ++++ Makefile 2010-10-04 16:53:11.028426820 +0000 +@@ -107,7 +107,7 @@ CFLAGS = $(RPM_OPT_FLAGS) + ALL_CFLAGS := $(PKG_CFLAGS) $(CFLAGS) $(LIBTYPE) + + PKG_LDFLAGS := -Wl,-warn-common +-LDFLAGS := ++LDFLAGS := -L ./proc --as-needed -lproc + ALL_LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS) + + ############ Add some extra flags if gcc allows +--- ps/module.mk ++++ ps/module.mk 2010-10-04 16:46:47.668425720 +0000 +@@ -20,11 +20,11 @@ PS_X := COPYING HACKING TRANSLATION comm + TARFILES += $(PSSRC) $(addprefix ps/,$(PS_X)) + + ps/ps: $(PSOBJ) $(LIBPROC) +- $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -o $@ $^ $(ldl) ++ $(CC) $(ALL_CFLAGS) $^ $(ALL_LDFLAGS) -o $@ $(ldl) + + # This just adds the stacktrace code + ps/debug: $(PSOBJ) stacktrace.o $(LIBPROC) +- $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -o $@ $^ -lefence $(ldl) ++ $(CC) $(ALL_CFLAGS) $^ $(ALL_LDFLAGS) -o $@ -lefence $(ldl) + + $(PSOBJ): %.o: %.c ps/common.h $(LIBPROC) + $(CC) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) $< -o $@