diff options
author | theuni <theuni-nospam-@xbmc.org> | 2011-09-02 23:28:48 -0400 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-09-02 23:32:22 -0400 |
commit | 502099b5179b208bfae702a7f296fcccd0febc45 (patch) | |
tree | 8bd0e6dedee2a3bcfcc0ee5c8afa2fba4d6ab8a9 /lib/libnfs | |
parent | 5068ab19f5a8a8bd095095c1fde46f6a90cf3d01 (diff) |
build: allow configure options to be set for libnfs
This is an ugly ugly hack, but it only has to last until
libnfs makes its way into distros.
use the PREFIX or LIBNFS_CONFIGOPTS env vars to override their defaults.
This way we can do cross builds without manual intervention.
Diffstat (limited to 'lib/libnfs')
-rw-r--r-- | lib/libnfs/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libnfs/Makefile b/lib/libnfs/Makefile index 826067b8df..266a3e21e1 100644 --- a/lib/libnfs/Makefile +++ b/lib/libnfs/Makefile @@ -16,10 +16,11 @@ RETRIEVE_TOOL=/usr/bin/curl RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE) ARCHIVE_TOOL=tar ARCHIVE_TOOL_FLAGS=xf - +PREFIX ?= /usr +LIBNFS_CONFIGOPTS ?= --prefix=$(PREFIX) # configuration settings -#FIX THE PREFIX TO SOMETHING LOCAL IN XBMC - CONFIGURE HAS TO FIND IT! -CONFIGURE=./configure CFLAGS=-D_FILE_OFFSET_BITS=64 --prefix=/usr + +CONFIGURE=./configure CFLAGS=-D_FILE_OFFSET_BITS=64 $(LIBNFS_CONFIGOPTS) SO_NAME=$(SOURCE)/lib/libnfs.so |