~ruther/guix-local

ref: 25e2662e7e65db2d2c3f9479a352e3507bcb46e9 guix-local/gnu/packages/patches/cproc-extra-linkflags.patch -rw-r--r-- 831 bytes
25e2662e — Maxim Cournoyer gnu: dhtnet: Update to 0.0.1-6.6dd5a5e and enable natpmp support. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Contrary to other Linux distributions, the glibc library files are not in the
standard ld(1) search path on Guix.  However, cproc only allows us to specify
the gcclibdir.  To workaround that we manually add a feature to cproc's
configure script which allows us to pass extra linkflags via an environment
variable.

diff --git a/configure b/configure
index dab1bf3..a31b456 100755
--- a/configure
+++ b/configure
@@ -159,7 +159,7 @@ static const char *const preprocesscmd[] = {
 $defines};
 static const char *const codegencmd[]    = {"$DEFAULT_QBE"};
 static const char *const assemblecmd[]   = {"$DEFAULT_ASSEMBLER"};
-static const char *const linkcmd[]       = {"$DEFAULT_LINKER", $linkflags};
+static const char *const linkcmd[]       = {"$DEFAULT_LINKER", ${LINKFLAGS_EXTRA:+\"$LINKFLAGS_EXTRA\", }$linkflags};
 EOF
 echo done