path: root/Rules.make
diff options
authorPhil Oester <>2006-07-20 16:59:04 +0000
committerPatrick McHardy <>2006-07-20 16:59:04 +0000
commit7f5be628f66ec7b8b22e87ace39ee61213c6313b (patch)
tree35ec1fd4c324beceba628c2a3fdf1dfb500e60dd /Rules.make
parent5549ad0e7eac76922e727e61f425e1f1f02e380d (diff)
Use gcc to build shared objects (Phil Oester <>)
As suggested by Dmitry Levin and included in Fedora Core releases, use gcc instead of ld to link shared objects. Fedora rpm notes refer to this fixing a plugin problem, but does not offer specifics. But in any event, 'gcc -dumpspecs' does show gcc will pass a number of parameters which in theory it thinks are better. Compile tested both with and without NO_SHARED_LIBS. Closes bug #454.
Diffstat (limited to 'Rules.make')
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.make b/Rules.make
index ffc8996b..17ea0172 100644
--- a/Rules.make
+++ b/Rules.make
@@ -31,7 +31,7 @@ $( %.d: %.c
sed -e 's@^.*\.o:@$*.d $*_sh.o:@' > $@
$(SHARED_LIBS): : %_sh.o
- $(LD) -shared $(EXT_LDFLAGS) -o $@ $<
+ $(CC) -shared $(EXT_LDFLAGS) -o $@ $<
$( %.d: %.c
@-$(CC) -M -MG $(CFLAGS) $< | \