summaryrefslogtreecommitdiff
path: root/recipes/sg3-utils/files
diff options
context:
space:
mode:
authorHenry von Tresckow <hvontres@gmail.com>2009-02-25 16:54:09 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2009-04-03 17:14:05 -0300
commitc0bada03550651d41d2d735fd7890a548dc5219d (patch)
tree49b296fbf83013a6df3ccebb0d680578bf453052 /recipes/sg3-utils/files
parent89eeba8660061aa02248257c4f759930ba610d34 (diff)
sg3-utils: Updated Makefile patch to deal with cross-compiling
Signed-off-by: Henry von Tresckow <hvontres@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/sg3-utils/files')
-rw-r--r--recipes/sg3-utils/files/Makefile-r1.patch (renamed from recipes/sg3-utils/files/Makefile.patch)31
1 files changed, 24 insertions, 7 deletions
diff --git a/recipes/sg3-utils/files/Makefile.patch b/recipes/sg3-utils/files/Makefile-r1.patch
index cc5babfa26..d43b51d63c 100644
--- a/recipes/sg3-utils/files/Makefile.patch
+++ b/recipes/sg3-utils/files/Makefile-r1.patch
@@ -1,8 +1,8 @@
Index: sg3-utils-1.24/Makefile
===================================================================
---- sg3-utils-1.24.orig/Makefile 2009-01-27 16:29:26.000000000 -0800
-+++ sg3-utils-1.24/Makefile 2009-01-27 22:31:04.000000000 -0800
-@@ -1,6 +1,6 @@
+--- sg3-utils-1.24.orig/Makefile 2007-05-07 11:59:19.000000000 -0700
++++ sg3-utils-1.24/Makefile 2009-02-02 16:37:35.000000000 -0800
+@@ -1,13 +1,15 @@
SHELL = /bin/sh
-PREFIX=/usr/local
@@ -10,15 +10,32 @@ Index: sg3-utils-1.24/Makefile
LIBDIR=$(DESTDIR)/$(PREFIX)/lib
INSTDIR=$(DESTDIR)/$(PREFIX)/bin
MANDIR=$(DESTDIR)/$(PREFIX)/share/man
-@@ -8,6 +8,8 @@
+ INCLUDEDIR=$(DESTDIR)/$(PREFIX)/include
- CC = gcc
- LD = gcc
-+LIBTOOL = libtool
+-CC = gcc
+-LD = gcc
++CC ?= gcc
++LD = ${CC}
++LIBTOOL ?= libtool
+LT_EXTRA = --tag=CC
EXECS = sg_dd sgp_dd sgm_dd sg_read sg_map sg_scan sg_rbuf \
sginfo sg_readcap sg_turs sg_inq sg_test_rwbuf \
+@@ -37,12 +39,12 @@
+ S_CFLAGS = $(OS_FLAGS) $(LARGE_FILE_FLAGS)
+
+ # CFLAGS = -O2 -Wall -W
+-CFLAGS = -g -O2 -Wall -W
++CFLAGS ?= -g -O2 -Wall -W
+ # CFLAGS = -g -O2 -Wall -W -pedantic -std=c99
+
+ CFLAGS_PTHREADS = -D_REENTRANT
+
+-LDFLAGS =
++LDFLAGS ?=
+ # LDFLAGS = -v -lm
+
+ LIB_VINFO = 1:0:0
@@ -64,164 +66,164 @@
$(CC) $(INCLUDES) $(CFLAGS) $(S_CFLAGS) -c -o $@ $<