aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2011-02-01 13:05:25 -0600
committerPeter Seebach <peter.seebach@windriver.com>2011-02-01 13:05:25 -0600
commitd1d46ce88db792883ce9b1be00e2b5adeaf225bd (patch)
treed1feb85f74f9f4c8c2f8d11799a360f84c64034b /Makefile.in
parentbcb42d80c0817da5479ab9c4f2cd8c4727e98ef8 (diff)
downloadpseudo-d1d46ce88db792883ce9b1be00e2b5adeaf225bd.tar.gz
pseudo-d1d46ce88db792883ce9b1be00e2b5adeaf225bd.tar.bz2
pseudo-d1d46ce88db792883ce9b1be00e2b5adeaf225bd.zip
Fix linkage issues due to missing -ldl
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 6982d30..ca6fed6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -47,13 +47,16 @@ GUTS=$(filter-out "$(GLOB_PATTERN)",$(wildcard $(GLOB_PATTERN)))
SOURCES=$(wildcard *.c)
OBJS=$(subst .c,.o,$(SOURCES))
-DBLDFLAGS=-lsqlite3
USE_64=wrapfuncs64.in
SHOBJS=pseudo_tables.o pseudo_util.o
-DBOBJS=pseudo_db.o -ldl -lpthread
+DBOBJS=pseudo_db.o
WRAPOBJS=pseudo_wrappers.o
+# needed for anything that links with pseduo_client.o, pretty much
+CLIENT_LDFLAGS=-ldl -lpthread
+DB_LDFLAGS=-lsqlite3
+
PSEUDO=$(BIN)/pseudo
PSEUDODB=$(BIN)/pseudodb
PSEUDOLOG=$(BIN)/pseudolog
@@ -89,26 +92,26 @@ pseudo: $(PSEUDO)
$(PSEUDO): $(BIN) pseudo.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_server.o pseudo_ipc.o
$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDO) \
pseudo.o pseudo_server.o pseudo_client.o pseudo_ipc.o \
- $(DBOBJS) $(SHOBJS) $(DBLDFLAGS)
+ $(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
pseudolog: $(PSEUDOLOG)
$(PSEUDOLOG): $(BIN) pseudolog.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_ipc.o
$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDOLOG) pseudolog.o pseudo_client.o pseudo_ipc.o \
- $(DBOBJS) $(SHOBJS) $(DBLDFLAGS)
+ $(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
pseudodb: $(PSEUDODB)
$(PSEUDODB): $(BIN) pseudodb.o $(SHOBJS) $(DBOBJS) pseudo_ipc.o
$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDODB) pseudodb.o \
- $(DBOBJS) $(SHOBJS) $(DBLDFLAGS) pseudo_ipc.o
+ $(DBOBJS) $(SHOBJS) pseudo_ipc.o $(DB_LDFLAGS)
libpseudo: $(LIBPSEUDO)
$(LIBPSEUDO): $(LIB) $(WRAPOBJS) pseudo_client.o pseudo_ipc.o $(SHOBJS)
$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -shared -o $(LIBPSEUDO) \
pseudo_client.o pseudo_ipc.o \
- $(WRAPOBJS) $(SHOBJS) -ldl
+ $(WRAPOBJS) $(SHOBJS) $(CLIENT_LDFLAGS)
%.o: %.c
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(CFLAGS_PSEUDO) $<