blob: e80861e17346ac33d5fb3a25f83b6568bf2d094e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#
# Submitted-By: Marc Kleine-Budde, 2007-01-26
#
# Error:
#
# project is not using automake, thus not saving CPPFLAGS and LDFLAGS during configure
#
# Description:
#
# added MY_CPPFLAGS variable, to provide cppflags from outside during
# make. same goes for LDFLAGS
#
Index: Makefile
===================================================================
--- a/Makefile.orig
+++ b/Makefile
@@ -14,7 +14,7 @@ pkgdatadir = $(datadir)/$(PACKAGE)
pkglibdir = $(libdir)/$(PACKAGE)
pkgincludedir = $(includedir)/$(PACKAGE)
-CPPFLAGS=-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(RELEASE_DATE)"' -I include
+CPPFLAGS=-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(RELEASE_DATE)"' -I include $(MY_CPPFLAGS)
HOST_CPPFLAGS=$(CPPFLAGS)
I386_CPPFLAGS=$(CPPFLAGS) -I arch/i386/include
IA64_CPPFLAGS=$(CPPFLAGS) -I arch/ia64/include
Index: Makefile.conf.in
===================================================================
--- a/Makefile.conf.in.orig
+++ b/Makefile.conf.in
@@ -14,7 +14,7 @@ mandir=@mandir@
includedir=@includedir@
DEFS=@DEFS@
-LIBS=@LIBS@
+LIBS=@LIBS@ $(LDFLAGS)
HOST_CC=@HOST_CC@
HOST_CFLAGS=@HOST_CFLAGS@ $(DEFS)
|