Al Stone b52332
Index: acpica-unix2-20170303/generate/unix/Makefile.config
Al Stone 938de5
===================================================================
Al Stone b52332
--- acpica-unix2-20170303.orig/generate/unix/Makefile.config
Al Stone b52332
+++ acpica-unix2-20170303/generate/unix/Makefile.config
Al Stone af93eb
@@ -23,6 +23,9 @@
Al Stone af93eb
 # OPT_CFLAGS can be overridden on the make command line by
Al Stone af93eb
 #   adding OPT_CFLAGS="..." to the invocation.
Al Stone af93eb
 #
Al Stone af93eb
+# OPT_LDFLAGS can be overridden on the make command line by
Al Stone af93eb
+#   adding OPT_LDFLAGS="..." to the invocation.
Al Stone af93eb
+#
Al Stone af93eb
 # Notes:
Al Stone af93eb
 #   gcc should be version 4 or greater, otherwise some of the options
Al Stone af93eb
 #     used will not be recognized.
Al Stone 938de5
@@ -43,7 +46,7 @@ CC =    gcc
Al Stone af93eb
 OBJDIR =     obj
Al Stone af93eb
 BINDIR =     bin
Al Stone af93eb
 COMPILEOBJ = $(CC) -c $(CFLAGS) $(OPT_CFLAGS) -o $@ $<
Al Stone af93eb
-LINKPROG =   $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS)
Al Stone af93eb
+LINKPROG =   $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS) $(OPT_LDFLAGS)
Al Stone af93eb
 PREFIX ?=    /usr
Al Stone af93eb
 INSTALLDIR = $(PREFIX)/bin
Al Stone af93eb
 UNAME_S := $(shell uname -s)
Al Stone b52332
@@ -157,6 +160,11 @@ LDFLAGS +=-m32
Al Stone b52332
 endif
Al Stone af93eb
 
Al Stone af93eb
 #
Al Stone af93eb
+# Common linker flags
Al Stone af93eb
+#
Al Stone af93eb
+OPT_LDFLAGS ?= 
Al Stone af93eb
+
Al Stone af93eb
+#
Al Stone af93eb
 # Optionally disable optimizations. Optimization causes problems on
Al Stone af93eb
 # some compilers such as gcc 4.4
Al Stone af93eb
 #