]> git.pld-linux.org Git - packages/acpica.git/blob - OPT_LDFLAGS.patch
70ffaf454b5972d3f5ec4199858b2b97a1b0d420
[packages/acpica.git] / OPT_LDFLAGS.patch
1 diff -Naur acpica-unix2-20140926/generate/unix/Makefile.config acpica-unix2-20140926-patch/generate/unix/Makefile.config
2 --- acpica-unix2-20140926/generate/unix/Makefile.config 2014-09-26 12:02:29.000000000 -0600
3 +++ acpica-unix2-20140926-patch/generate/unix/Makefile.config   2014-10-01 12:53:53.510530248 -0600
4 @@ -23,6 +23,9 @@
5  # OPT_CFLAGS can be overridden on the make command line by
6  #   adding OPT_CFLAGS="..." to the invocation.
7  #
8 +# OPT_LDFLAGS can be overridden on the make command line by
9 +#   adding OPT_LDFLAGS="..." to the invocation.
10 +#
11  # Notes:
12  #   gcc should be version 4 or greater, otherwise some of the options
13  #     used will not be recognized.
14 @@ -43,7 +46,7 @@
15  OBJDIR =     obj
16  BINDIR =     bin
17  COMPILEOBJ = $(CC) -c $(CFLAGS) $(OPT_CFLAGS) -o $@ $<
18 -LINKPROG =   $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS)
19 +LINKPROG =   $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS) $(OPT_LDFLAGS)
20  PREFIX ?=    /usr
21  INSTALLDIR = $(PREFIX)/bin
22  UNAME_S := $(shell uname -s)
23 @@ -136,6 +139,11 @@
24  OPT_CFLAGS ?= $(CWARNINGFLAGS)
25  
26  #
27 +# Common linker flags
28 +#
29 +OPT_LDFLAGS ?= 
30 +
31 +#
32  # Optionally disable optimizations. Optimization causes problems on
33  # some compilers such as gcc 4.4
34  #
This page took 0.054476 seconds and 2 git commands to generate.