2015-04-10 21:49:17 +00:00
|
|
|
Index: src/generate/unix/Makefile.config
|
|
|
|
===================================================================
|
|
|
|
--- src.orig/generate/unix/Makefile.config
|
|
|
|
+++ src/generate/unix/Makefile.config
|
2014-10-01 19:31:13 +00:00
|
|
|
@@ -23,6 +23,9 @@
|
|
|
|
# OPT_CFLAGS can be overridden on the make command line by
|
|
|
|
# adding OPT_CFLAGS="..." to the invocation.
|
|
|
|
#
|
|
|
|
+# OPT_LDFLAGS can be overridden on the make command line by
|
|
|
|
+# adding OPT_LDFLAGS="..." to the invocation.
|
|
|
|
+#
|
|
|
|
# Notes:
|
|
|
|
# gcc should be version 4 or greater, otherwise some of the options
|
|
|
|
# used will not be recognized.
|
2015-04-10 21:49:17 +00:00
|
|
|
@@ -43,7 +46,7 @@ CC = gcc
|
2014-10-01 19:31:13 +00:00
|
|
|
OBJDIR = obj
|
|
|
|
BINDIR = bin
|
|
|
|
COMPILEOBJ = $(CC) -c $(CFLAGS) $(OPT_CFLAGS) -o $@ $<
|
|
|
|
-LINKPROG = $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS)
|
|
|
|
+LINKPROG = $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS) $(OPT_LDFLAGS)
|
|
|
|
PREFIX ?= /usr
|
|
|
|
INSTALLDIR = $(PREFIX)/bin
|
|
|
|
UNAME_S := $(shell uname -s)
|
2015-06-30 21:47:41 +00:00
|
|
|
@@ -144,6 +147,11 @@ ACPICA_HEADERS = \
|
2014-10-01 19:31:13 +00:00
|
|
|
OPT_CFLAGS ?= $(CWARNINGFLAGS)
|
|
|
|
|
|
|
|
#
|
|
|
|
+# Common linker flags
|
|
|
|
+#
|
|
|
|
+OPT_LDFLAGS ?=
|
|
|
|
+
|
|
|
|
+#
|
|
|
|
# Optionally disable optimizations. Optimization causes problems on
|
|
|
|
# some compilers such as gcc 4.4
|
|
|
|
#
|