diff options
author | David Schleef <ds@schleef.org> | 2001-07-04 02:04:38 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2001-07-04 02:04:38 +0000 |
commit | ca240d0eec47a0d6ef981a16fa2e0da500ff6424 (patch) | |
tree | 920475c267edfd41d32ef6c7f3df27e2183c7ae4 | |
parent | bca0309adc8dd4ea98ea4460ca9bd25c5eec5b43 (diff) |
Make shared library installation conditional
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index dd71de329..2d62b5d1f 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,12 @@ version:=$(strip $(major)).$(strip $(minor)) target=$(DEB_HOST_GNU_CPU) #target=powerpc +with_shared_libs=y +#ifeq ($(target),powerpc) +#with_shared_libs=n +#endif + + build: build-stamp build-stamp: dh_testdir @@ -32,7 +38,7 @@ endif echo 'PREFIX = $$(DESTDIR)/usr' >>Config echo 'DEVEL_PREFIX = $$(PREFIX)/$$(TARGET_ARCH)-linux-uclibc' >>Config echo 'TARGET_PREFIX = $$(DESTDIR)/' >>Config -ifeq ($(target),powerpc) +ifeq ($(with_shared_libs),n) echo 'HAVE_SHARED = false' >>Config endif @@ -77,9 +83,11 @@ install: build install -m 644 debian/uclibc-ldconfig.1 \ debian/libuclibc0/usr/share/man/man1/$(target)-uclibc-ldconfig.1 +ifeq ($(with_shared_libs),y) mkdir -p debian/libuclibc0/lib/ ln -sf /usr/$(target)-uclibc-linux/lib/ld-uclibc.so.0 \ debian/libuclibc0/lib/ld-uclibc.so.0 +endif # Build architecture-independent files here. binary-indep: build install |