Print this page
5468 Missing dependencies in lib/Makefile
5709 Add binary compatibility with Solaris 10 update 10.

@@ -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)