patch - ar -> $(AR)
K. Richard Pixley
rpixley at sj.symbol.com
Fri Aug 27 16:26:19 UTC 2004
Calling ar from the path is just plain wrong in the general case as it
makes it impossible to override the default toolchain. One would want
to override the default toolchain if one were, say, testing a freshly
built toolchain, using a toolchain other than the vendor supplied
toolchain (say, GNU), or using a cross compilation toolchain.
Patch follows.
--rich
diff -u -r dhcp-3.0.1/common/Makefile.dist dhcp-work/common/Makefile.dist
--- dhcp-3.0.1/common/Makefile.dist 2004-06-14 14:08:42.000000000 -0700
+++ dhcp-work/common/Makefile.dist 2004-07-08 15:37:15.000000000 -0700
@@ -39,7 +39,7 @@
libdhcp.a: $(OBJ)
rm -f libdhcp.a
- ar cruv libdhcp.a $(OBJ)
+ $(AR) cruv libdhcp.a $(OBJ)
$(RANLIB) libdhcp.a
install: all
diff -u -r dhcp-3.0.1/dhcpctl/Makefile.dist dhcp-work/dhcpctl/Makefile.dist
--- dhcp-3.0.1/dhcpctl/Makefile.dist 2004-06-10 10:59:23.000000000 -0700
+++ dhcp-work/dhcpctl/Makefile.dist 2004-07-08 15:37:15.000000000 -0700
@@ -44,7 +44,7 @@
libdhcpctl.a: $(OBJ)
rm -f libdhcpctl.a
- ar cruv libdhcpctl.a $(OBJ)
+ $(AR) cruv libdhcpctl.a $(OBJ)
$(RANLIB) libdhcpctl.a
install: all $(CATMANPAGES)
diff -u -r dhcp-3.0.1/dst/Makefile.dist dhcp-work/dst/Makefile.dist
--- dhcp-3.0.1/dst/Makefile.dist 2004-06-10 10:59:28.000000000 -0700
+++ dhcp-work/dst/Makefile.dist 2004-07-08 15:37:15.000000000 -0700
@@ -34,7 +34,7 @@
libdst.a: $(OBJ)
rm -f dst.a
- ar cruv libdst.a $(OBJ)
+ $(AR) cruv libdst.a $(OBJ)
$(RANLIB) libdst.a
depend:
diff -u -r dhcp-3.0.1/minires/Makefile.dist dhcp-work/minires/Makefile.dist
--- dhcp-3.0.1/minires/Makefile.dist 2004-06-10 10:59:40.000000000 -0700
+++ dhcp-work/minires/Makefile.dist 2004-07-08 15:37:15.000000000 -0700
@@ -40,7 +40,7 @@
libres.a: $(OBJ)
rm -f res.a
- ar cruv libres.a $(OBJ)
+ $(AR) cruv libres.a $(OBJ)
$(RANLIB) libres.a
depend:
diff -u -r dhcp-3.0.1/omapip/Makefile.dist dhcp-work/omapip/Makefile.dist
--- dhcp-3.0.1/omapip/Makefile.dist 2004-06-14 14:08:50.000000000 -0700
+++ dhcp-work/omapip/Makefile.dist 2004-07-08 15:37:15.000000000 -0700
@@ -48,7 +48,7 @@
libomapi.a: $(OBJ)
rm -f libomapi.a
- ar cruv libomapi.a $(OBJ)
+ $(AR) cruv libomapi.a $(OBJ)
$(RANLIB) libomapi.a
install: all
More information about the dhcp-hackers
mailing list