|
Al Stone |
af93eb |
diff -Naur acpica-unix2-20140926/generate/unix/Makefile.config acpica-unix2-20140926-patch/generate/unix/Makefile.config
|
|
Al Stone |
af93eb |
--- acpica-unix2-20140926/generate/unix/Makefile.config 2014-09-26 12:02:29.000000000 -0600
|
|
Al Stone |
af93eb |
+++ acpica-unix2-20140926-patch/generate/unix/Makefile.config 2014-10-01 12:53:53.510530248 -0600
|
|
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 |
af93eb |
@@ -43,7 +46,7 @@
|
|
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 |
af93eb |
@@ -136,6 +139,11 @@
|
|
Al Stone |
af93eb |
OPT_CFLAGS ?= $(CWARNINGFLAGS)
|
|
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 |
#
|