summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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)