summaryrefslogtreecommitdiff
path: root/filesystems/fuse-lzofs/patches/patch-aa
blob: fe4c1e723d31f1f720960ed2dd801cf0457a2abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.1.1.1 2007/02/20 23:00:08 xtraeme Exp $

--- Makefile.orig	2006-03-06 14:42:15.000000000 +0100
+++ Makefile	2007-02-18 16:48:11.000000000 +0100
@@ -1,5 +1,6 @@
-CFLAGS= -Wall -g -D_FILE_OFFSET_BITS=64 -I/usr/include/lzo/ -O2 -s -fomit-frame-pointer
-LIBS= -lfuse -lz -llzo2
+CFLAGS+= -Wall -D_FILE_OFFSET_BITS=64 -I${PREFIX}/include -fomit-frame-pointer
+LIBS+=	-lfuse -lz -llzo2
+LDFLAGS+= -L${PREFIX}/lib -Wl,-R${PREFIX}/lib
 
 default: lzo_fs
 
@@ -8,7 +9,7 @@
 
 
 lzo_fs:	 LZOlayer_fs.c
-	gcc -o $@ $^ -g  $(CFLAGS) $(LIBS)
+	gcc -o $@ $^ -g  $(CFLAGS) $(LDFLAGS) $(LIBS)
 
 
 clean: