aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-09-15 10:47:42 -0500
committerPeter Seebach <peter.seebach@windriver.com>2010-09-15 11:07:36 -0500
commite5c82673805290747db3607bc0e2645dcff105f6 (patch)
tree7347a4914e78078f570124c9fd9515f717fa139f /Makefile.in
parente3765ee9c9c2bccaa32fbe6426d4eb1bbcd214e7 (diff)
downloadpseudo-e5c82673805290747db3607bc0e2645dcff105f6.tar.gz
pseudo-e5c82673805290747db3607bc0e2645dcff105f6.tar.bz2
pseudo-e5c82673805290747db3607bc0e2645dcff105f6.zip
In the WR Linux build system, we build host tools (including pseudo)
in one place, but then often reuse them in other project directories. As a result, the --with-sqlite path is no longer the right path to use for RPATH later in the program's life. In the past, we were using chrpath to change the path to something more suitable, but this doesn't work if the new path is longer. Instead, allow an explicit --with-rpath setting which our build system can use. The logic is: * If you don't specify --with-sqlite or --with-rpath, you get no -Wl,-R * If you specify an empty path in --with-rpath, or --without-rpath, you get no -Wl,-R * If you specify --with-rpath with a non-empty path, you get -Wl,-R<path> * If you specify --with-sqlite, but not --with-rpath, you get -Wl,-R$(SQLITE)/lib
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f916788..2bf8197 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -23,6 +23,7 @@ SUFFIX=@SUFFIX@
SQLITE=@SQLITE@
BITS=@BITS@
MARK64=@MARK64@
+RPATH=@RPATH@
VERSION=0.3
LIB=lib$(MARK64)
@@ -36,7 +37,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 -Wl,-R$(SQLITE)/lib
+CFLAGS_SQL=-L$(SQLITE)/lib -I$(SQLITE)/include $(RPATH)
CFLAGS_PSEUDO=$(CFLAGS_BASE) $(CFLAGS_CODE) $(CFLAGS_DEFS) \
$(CFLAGS_DEBUG) $(CFLAGS_SQL)