aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-11 10:03:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-11 10:03:14 +0000
commita086e99bae650dc74d36664a5b11860659d5b113 (patch)
tree9c438c9e71d89f8fe2985e724aa572d3c1eca19f /java
parent62056a644f712c47d56fa9ddcebda2539c4609a6 (diff)
added Linux hints
Diffstat (limited to 'java')
-rw-r--r--java/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/Makefile b/java/Makefile
index e05ea6004..1c69e6ee3 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -6,7 +6,9 @@ OBJS = javacurl.o
CC = gcc
CFLAGS = -c
CPPFLAGS = -I/usr/j2se/include -I/usr/local/include -I/usr/j2se/include/solaris
-LDFLAGS = -lcurl -ldl -L/usr/local/ssl/lib -lssl -lcrypto
+
+# Linux might use -shared -Wl,-soname,libnative.so instead of -G
+LDFLAGS = -G -lcurl -ldl -L/usr/local/ssl/lib -lssl -lcrypto
all: CurlGlue.h CurlGlue.class javacurl.o $(TARGET) test.class
@@ -27,7 +29,7 @@ CurlGlue.class: CurlGlue.java
javac $<
$(TARGET): $(OBJS)
- $(CC) -G -o $(TARGET) $(LDFLAGS) $(OBJS)
+ $(CC) -o $(TARGET) $(LDFLAGS) $(OBJS)
clean:
rm -f javacurl.o CurlGlue.h CurlGlue.class