.
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=32
This commit is contained in:
parent
1f5142e1a2
commit
96edea3e25
27
procps-3.2.8.dif
Normal file
27
procps-3.2.8.dif
Normal file
@ -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 $@
|
Loading…
Reference in New Issue
Block a user