mirror of
https://codeberg.org/guix/guix.git
synced 2026-09-06 22:01:46 +00:00
Since the latest binutils upgrade, this package has failed to build. This is fixed in this commit by explicitly making the stack non-executable through custom linker flags. * gnu/packages/patches/libpatch-respect-ldflags.patch: New patch * gnu/local.mk (dist_patch_DATA): Register the above patch. * gnu/packages/instrumentation.scm (libpatch)[arguments] <#:make-flags>: Pass custom LDFLAGS and skip a flaky test case. [source]: Add patch. Change-Id: I07491cd31f6a00b8d2eecfbdaa78945558d69678
15 lines
521 B
Diff
15 lines
521 B
Diff
Ensure that building of tests/libtest.so respects our LDFLAGS.
|
|
|
|
diff -upr a/Makefile b/Makefile
|
|
--- a/Makefile 2026-07-06 21:05:39.442671225 +0200
|
|
+++ b/Makefile 2026-07-06 21:07:01.478498796 +0200
|
|
@@ -123,7 +123,7 @@ libpatch.so: $(OBJECTS)
|
|
$(QUIET_LINK) $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ $(LIBS)
|
|
|
|
tests/libtest.so: $(TOBJECTS)
|
|
- $(QUIET_LINK) $(CC) -shared -o $@ $^
|
|
+ $(QUIET_LINK) $(CC) $(LDFLAGS) -shared -o $@ $^
|
|
|
|
%.o: %.c
|
|
$(QUIET_CC) $(CC) $(CPPFLAGS) -MMD $(CFLAGS) -fPIC -c -o $@ $<
|