Print this page
5468 Missing dependencies in lib/Makefile

@@ -20,10 +20,12 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2015 RackTop Systems.
+#
 
 PROG=           sqlite
 
 include ../Makefile.cmd
 

@@ -51,11 +53,12 @@
 CPPFLAGS +=     -D_REENTRANT -DTHREADSAFE=1 -DHAVE_USLEEP=1 \
                 -I$(SQLITEHDRDIR)
 
 $(PROG): $(OBJS) $(SQLITEHDRDIR)/sqlite.h
         $(LINK.c) -o $@ $(OBJS) \
-            $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBSQLITE)
+            $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
+            $(LIBSQLITE) $(LDLIBS)
         $(CTFMERGE) -t -L VERSION -o $@ $(OBJS) $(LIBSQLITE)
         $(POST_PROCESS)
 
 all: $(PROG)