diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-04 15:36:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-04 15:36:56 +0000 |
commit | 09cf3342d5629c2417f61482e6d3291f00966a18 (patch) | |
tree | caf61cbb28cd4e7c340fc1d6a5910ff1c4932b10 /src | |
parent | 8c4e35e4ab50b2656230aea4da7b16b6921b86b6 (diff) |
do not hardcode ar or ranlib
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 83feacea..8547b45a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,6 +6,8 @@ # it up and not rely on GNU Make. CC ?= gcc +AR ?= ar +RANLIB ?= ranlib CFLAGS += -O2 -pipe LDFLAGS += -L. @@ -110,8 +112,8 @@ $(LIBEINFOSO): einfo.map $(LIBEINFOOBJS) -Wl,-version-script einfo.map \ -o $(LIBEINFOSO) $(LIBEINFOOBJS) $(LDLIBS_LIBEINFO) ln -sf $(LIBEINFOSO) libeinfo.so - ar rc libeinfo.a $(LIBEINFOOBJS) - ranlib libeinfo.a + $(AR) rc libeinfo.a $(LIBEINFOOBJS) + $(RANLIB) libeinfo.a $(LIBRCOBJS): $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $< @@ -121,8 +123,8 @@ $(LIBRCSO): rc.map $(LIBRCOBJS) -Wl,-version-script rc.map \ -o $(LIBRCSO) $(LIBRCOBJS) $(LDLIBS_LIBRC) ln -sf $(LIBRCSO) librc.so - ar rc librc.a $(LIBRCOBJS) - ranlib librc.a + $(AR) rc librc.a $(LIBRCOBJS) + $(RANLIB) librc.a $(RCOBJS): $(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $< |