summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-05 06:01:21 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-05 06:01:21 +0000
commit2d858d53fdc3a40c52e83ce6c58f37ba485a1828 (patch)
tree6cc60c6d3345b75d441ed7f94acd9d4fbc84bc5b
parent7be859a705aa7084b187e8007847aa4ddb049faf (diff)
Use LDFLAGS, don't always include -nostdlib...
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b92d15c1..08e28b544 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ shared: $(STATIC_NAME)
@mkdir tmp
@(cd tmp; ar -x ../$(STATIC_NAME))
@(cd tmp; CC=$(CC) /bin/sh ../extra/scripts/get-needed-libgcc-objects.sh)
- $(CC) -s -nostdlib -shared -o $(SHARED_NAME) -Wl,-soname,$(SHARED_NAME) tmp/*.o
+ $(CC) -g $(LDFLAGS) -shared -o $(SHARED_NAME) -Wl,-soname,$(SHARED_NAME) tmp/*.o
@rm -rf tmp
done: $(STATIC_NAME) $(DO_SHARED)