Browse Source

Use LDFLAGS, don't always include -nostdlib...

Eric Andersen 23 years ago
parent
commit
2d858d53fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
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)