[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Missing LDFLAGS in MiNTLib



Hello.

In the MiNTLib, sunrpc and tz makefiles use the LDFLAGS variables which is not defined. As a result, if LDFLAGS is defined in the build environment, it is used and the build may fail. This is what happens when building a MiNTLib package for Ubuntu 12.04 Precise Pangolin using dpkg-buildpackage.

The attached patch fixes this problem by initializing an empty LDFLAGS variable in the makefiles. Please commit.

ldflags.patch
Initialize LDFLAGS to avoid taking it from the environment. Contributed by Vincent Riviere.

--
Vincent Rivière
--- mintlib.orig/configvars	2011-10-28 22:44:44.781250000 +0200
+++ mintlib/configvars	2012-05-04 20:08:05.437500000 +0200
@@ -126,6 +126,9 @@
 # Additional defines.
 DEFS=
 
+# Flags for building executables
+LDFLAGS=
+
 # Define this to the warning level you want.
 WARN=-Wall