summaryrefslogtreecommitdiff
path: root/lang/jdk-openjit/patches/patch-ac
blob: d216c004b618100f43381f01038b6028dcadc999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ac,v 1.1.1.1 2003/07/01 19:02:34 jlam Exp $

--- Makefile.in.orig	Mon Feb 17 17:40:59 2003
+++ Makefile.in
@@ -156,10 +156,10 @@ org/OpenJIT/%.class: org/OpenJIT/%.java
 $(OBJDIR)/%.o: %.c
 	$(COMPILE.c) -o $@ $<
 
-debug:	.checkinstall org/OpenJIT/$(ARCH).class
+debug:	org/OpenJIT/$(ARCH).class
 	$(MAKE) $(DEBUG) VARIANT=DBG
 
-optimized:	.checkinstall org/OpenJIT/$(ARCH).class
+optimized:	org/OpenJIT/$(ARCH).class
 	$(MAKE) $(OPTIMIZED) VARIANT=OPT
 
 .checkinstall:
@@ -182,10 +182,10 @@ optimized:	.checkinstall org/OpenJIT/$(A
 	fi
 
 $(DEBUG): .objdir .libdir $(OBJS)
-	$(LD) -G -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
+	$(CC) -shared -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
 
 $(OPTIMIZED): .objdir .libdir $(OBJS)
-	$(LD) -G -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
+	$(CC) -shared -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
 
 install: all install-libs @INSTALL_OPENJITPKG@