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