Skip to content

Instantly share code, notes, and snippets.

@msmhrt
Created May 20, 2012 12:17
Show Gist options
  • Select an option

  • Save msmhrt/2757887 to your computer and use it in GitHub Desktop.

Select an option

Save msmhrt/2757887 to your computer and use it in GitHub Desktop.
This is a patch for pcre to fix explicit DSO linking issue.
diff --git a/Makefile.am b/Makefile.am
index ce88cc2..d6b7e58 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -339,7 +339,7 @@ pcretest_SOURCES = pcretest.c
pcretest_LDADD = $(LIBREADLINE)
if WITH_PCRE8
pcretest_SOURCES += pcre_printint.c
-pcretest_LDADD += libpcreposix.la
+pcretest_LDADD += libpcre.la libpcreposix.la
endif # WITH_PCRE8
if WITH_PCRE16
pcretest_SOURCES += pcre16_printint.c
@@ -352,7 +352,7 @@ dist_noinst_SCRIPTS += RunGrepTest
bin_PROGRAMS += pcregrep
pcregrep_SOURCES = pcregrep.c
pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
-pcregrep_LDADD += libpcreposix.la
+pcregrep_LDADD += libpcre.la libpcreposix.la
endif # WITH_PCRE8
EXTRA_DIST += \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment