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