aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-09-02 16:14:26 -0500
committerPeter Seebach <peter.seebach@windriver.com>2010-09-02 16:14:26 -0500
commit2f00f68c6f14da135bf75251f3ded951023f72ee (patch)
tree7f057c66d2d8f4d4817704475a39194bb1018973
parent53569b51816ee5a244a2426fe1546c06c12af915 (diff)
downloadpseudo-2f00f68c6f14da135bf75251f3ded951023f72ee.tar.gz
pseudo-2f00f68c6f14da135bf75251f3ded951023f72ee.tar.bz2
pseudo-2f00f68c6f14da135bf75251f3ded951023f72ee.zip
Add -Wl,-R$(SQLITE)/lib so we can find libsqlite3 if it wasn't
in the default location.
-rw-r--r--ChangeLog.txt2
-rw-r--r--Makefile.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 534041e..cba674d 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,7 @@
2010-09-02:
* (seebs) fix errno for getcwd() with insufficient size
+ * (seebs) Add an RPATH entry to the pseudo binary to find the sqlite3
+ library.
2010-09-01:
* (seebs) add missing casts to even more printf arguments
diff --git a/Makefile.in b/Makefile.in
index 7524f29..f916788 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,7 +36,7 @@ CFLAGS_BASE=-pipe -std=gnu99 -Wall -W -Wextra
CFLAGS_CODE=-fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -m$(BITS)
CFLAGS_DEFS=-DPSEUDO_PREFIX='"$(PREFIX)"' -DPSEUDO_SUFFIX='"$(SUFFIX)"' -DPSEUDO_BINDIR='"$(BIN)"' -DPSEUDO_LIBDIR='"$(LIB)"' -DPSEUDO_LOCALSTATEDIR='"$(LOCALSTATE)"' -DPSEUDO_VERSION='"$(VERSION)"'
CFLAGS_DEBUG=-O2 -g
-CFLAGS_SQL=-L$(SQLITE)/lib -I$(SQLITE)/include
+CFLAGS_SQL=-L$(SQLITE)/lib -I$(SQLITE)/include -Wl,-R$(SQLITE)/lib
CFLAGS_PSEUDO=$(CFLAGS_BASE) $(CFLAGS_CODE) $(CFLAGS_DEFS) \
$(CFLAGS_DEBUG) $(CFLAGS_SQL)