File: fix_linker.patch

package info (click to toggle)
pads 1.2-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,896 kB
  • sloc: ansic: 4,210; sh: 3,392; perl: 143; makefile: 54
file content (16 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: The libraries need to be listed after the input object files
and EXTRA_LIBS is mentioned before. So, use -lpcre with LIBS.

---

--- pads-1.2.orig/configure.in
+++ pads-1.2/configure.in
@@ -83,7 +83,7 @@ AC_CHECK_HEADERS(pcre.h,
     AC_MSG_ERROR([Cannot find PCRE header files!]))
 LDFLAGS="${LDFLAGS} `pcre-config --libs`"
 AC_CHECK_LIB(pcre, pcre_compile,
-    EXTRA_LIBS="$EXTRA_LIBS -lpcre",
+    LIBS="$LIBS -lpcre",
     AC_MSG_ERROR([Cannot find PCRE library files!]))
 
 ##