fix link order so static linking will work
This commit is contained in:
parent
2d1819f305
commit
64a30eb044
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-Makefile,v 1.4 2006/09/26 12:26:21 kevlo Exp $
|
||||
--- Makefile.orig Wed Jan 14 16:23:41 2004
|
||||
+++ Makefile Tue Sep 26 20:19:40 2006
|
||||
$OpenBSD: patch-Makefile,v 1.5 2009/03/26 18:06:01 naddy Exp $
|
||||
--- Makefile.orig Wed Jan 14 17:23:41 2004
|
||||
+++ Makefile Thu Mar 26 19:02:54 2009
|
||||
@@ -3,8 +3,8 @@
|
||||
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
|
||||
# Edit here:
|
||||
@ -21,7 +21,26 @@ $OpenBSD: patch-Makefile,v 1.4 2006/09/26 12:26:21 kevlo Exp $
|
||||
# -DSLIST removed because it wouldn't compile under gcc 3.x
|
||||
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
|
||||
|
||||
@@ -103,10 +103,11 @@ test-zip:
|
||||
@@ -28,7 +28,8 @@ CFLAGS = -c -Wall -O2 -g
|
||||
#CFLAGS = -c -Wall -O2 -g -DSLIST -DNDEBUG
|
||||
|
||||
# link zlib the compression/decompression library. used for decompressing jar files
|
||||
-LFLAGS=-g -lz
|
||||
+LFLAGS=-g
|
||||
+LIBS=-lz
|
||||
|
||||
# Directory to place executables
|
||||
INSTALL_DIR=/usr/local/bin
|
||||
@@ -52,7 +53,7 @@ antic.o: antic.c
|
||||
$(CC) $(CFLAGS) antic.c
|
||||
|
||||
antic: antic.o
|
||||
- $(CC) $(LFLAGS) -o antic antic.o
|
||||
+ $(CC) $(LFLAGS) -o antic antic.o $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.exe core *~ *.his *.class jlint antic manual.{html,pdf,aux,cp,fn,ky,log,pg,toc,tp,vr} jlint_3.0.{aux,dvi,log,toc}
|
||||
@@ -103,10 +104,11 @@ test-zip:
|
||||
|
||||
|
||||
install:
|
||||
@ -37,3 +56,12 @@ $OpenBSD: patch-Makefile,v 1.4 2006/09/26 12:26:21 kevlo Exp $
|
||||
|
||||
|
||||
# --> automatically generated dependencies follow; do not remove this line.
|
||||
@@ -120,7 +122,7 @@ jlint: \
|
||||
locks.o \
|
||||
message_node.o \
|
||||
method_desc.o
|
||||
- $(CPP) $(LFLAGS) -o jlint access_desc.o callee_desc.o class_desc.o graph.o jlint.o local_context.o locks.o message_node.o method_desc.o
|
||||
+ $(CPP) $(LFLAGS) -o jlint access_desc.o callee_desc.o class_desc.o graph.o jlint.o local_context.o locks.o message_node.o method_desc.o $(LIBS)
|
||||
|
||||
access_desc.o: access_desc.cc \
|
||||
access_desc.hh \
|
||||
|
@ -1,16 +1,15 @@
|
||||
$OpenBSD: patch-field_desc_hh,v 1.1 2004/01/28 20:39:44 naddy Exp $
|
||||
--- field_desc.hh.orig 2004-01-28 21:24:08.000000000 +0100
|
||||
+++ field_desc.hh 2004-01-28 21:24:21.000000000 +0100
|
||||
@@ -2,10 +2,11 @@
|
||||
$OpenBSD: patch-field_desc_hh,v 1.2 2009/03/26 18:06:01 naddy Exp $
|
||||
--- field_desc.hh.orig Tue Jun 5 14:19:37 2001
|
||||
+++ field_desc.hh Thu Mar 26 19:01:07 2009
|
||||
@@ -2,9 +2,10 @@
|
||||
#define FIELD_DESC_HH
|
||||
|
||||
#ifdef VISUAL_CPP
|
||||
-using namespace std;
|
||||
#pragma warning (disable : 4786)
|
||||
#endif
|
||||
|
||||
+using namespace std;
|
||||
+
|
||||
+using namespace std;
|
||||
|
||||
#include "component_desc.hh"
|
||||
#include "utf_string.hh"
|
||||
class const_name_and_type;
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-types_hh,v 1.1 2004/01/28 20:39:44 naddy Exp $
|
||||
--- types.hh.orig 2004-01-28 21:25:25.000000000 +0100
|
||||
+++ types.hh 2004-01-28 21:25:33.000000000 +0100
|
||||
$OpenBSD: patch-types_hh,v 1.2 2009/03/26 18:06:01 naddy Exp $
|
||||
--- types.hh.orig Fri Apr 4 20:29:43 2003
|
||||
+++ types.hh Thu Mar 26 19:01:07 2009
|
||||
@@ -2,10 +2,10 @@
|
||||
#define TYPES_HH
|
||||
|
||||
@ -12,4 +12,4 @@ $OpenBSD: patch-types_hh,v 1.1 2004/01/28 20:39:44 naddy Exp $
|
||||
+#include <cassert>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <stddef.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user