build: Better handle substitutions in 'guile-2.0.pc' & co.
authorLudovic Courtès <ludo@gnu.org>
Sat, 6 Dec 2014 14:57:23 +0000 (15:57 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 6 Dec 2014 14:57:23 +0000 (15:57 +0100)
* meta/Makefile.am (dependency_substitutions): Use '|' as the separate
  instead of ','.  See <http://hydra.nixos.org/build/17684751>.

meta/Makefile.am

index b48c8ec..0421277 100644 (file)
@@ -74,22 +74,24 @@ substitute =                                                                        \
         -e "s,[@]installed_guile[@],$$installed_guile,g"
 
 # Substitutions for dependencies that appear in 'guile-2.0.pc'.
+# Some of these may include things like "-Wl,-rpath", which is why we do
+# not use a comma to separate the 's' arguments.
 dependency_substitutions =                             \
-  -e "s,[@]BDW_GC_CFLAGS[@],$(BDW_GC_CFLAGS),g"                \
-  -e "s,[@]BDW_GC_LIBS[@],$(BDW_GC_LIBS),g"            \
-  -e "s,[@]LIB_CLOCK_GETTIME[@],$(LIB_CLOCK_GETTIME),g"        \
-  -e "s,[@]LIBGMP[@],$(LIBGMP),g"                      \
-  -e "s,[@]LIBLTDL[@],$(LIBLTDL),g"                    \
-  -e "s,[@]LIBFFI_LIBS[@],$(LIBFFI_LIBS),g"            \
-  -e "s,[@]LIBUNISTRING[@],$(LIBUNISTRING),g"          \
-  -e "s,[@]LIBICONV[@],$(LIBICONV),g"                  \
-  -e "s,[@]LIBINTL[@],$(LIBINTL),g"                    \
-  -e "s,[@]LIBSOCKET[@],$(LIBSOCKET),g"                        \
-  -e "s,[@]SERVENT_LIB[@],$(SERVENT_LIB),g"            \
-  -e "s,[@]HOSTENT_LIB[@],$(HOSTENT_LIB),g"            \
-  -e "s,[@]GETADDRINFO_LIB[@],$(GETADDRINFO_LIB),g"    \
-  -e "s,[@]INET_NTOP_LIB[@],$(INET_NTOP_LIB),g"                \
-  -e "s,[@]INET_PTON_LIB[@],$(INET_PTON_LIB),g"
+  -e "s|[@]BDW_GC_CFLAGS[@]|$(BDW_GC_CFLAGS)|g"                \
+  -e "s|[@]BDW_GC_LIBS[@]|$(BDW_GC_LIBS)|g"            \
+  -e "s|[@]LIB_CLOCK_GETTIME[@]|$(LIB_CLOCK_GETTIME)|g"        \
+  -e "s|[@]LIBGMP[@]|$(LIBGMP)|g"                      \
+  -e "s|[@]LIBLTDL[@]|$(LIBLTDL)|g"                    \
+  -e "s|[@]LIBFFI_LIBS[@]|$(LIBFFI_LIBS)|g"            \
+  -e "s|[@]LIBUNISTRING[@]|$(LIBUNISTRING)|g"          \
+  -e "s|[@]LIBICONV[@]|$(LIBICONV)|g"                  \
+  -e "s|[@]LIBINTL[@]|$(LIBINTL)|g"                    \
+  -e "s|[@]LIBSOCKET[@]|$(LIBSOCKET)|g"                        \
+  -e "s|[@]SERVENT_LIB[@]|$(SERVENT_LIB)|g"            \
+  -e "s|[@]HOSTENT_LIB[@]|$(HOSTENT_LIB)|g"            \
+  -e "s|[@]GETADDRINFO_LIB[@]|$(GETADDRINFO_LIB)|g"    \
+  -e "s|[@]INET_NTOP_LIB[@]|$(INET_NTOP_LIB)|g"                \
+  -e "s|[@]INET_PTON_LIB[@]|$(INET_PTON_LIB)|g"
 
 guile-2.0.pc: guile-2.0.pc.in
        $(substitute) < "$<" > "$@.out"