[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.0.0-71-g26bba35



The following commit has been merged in the master branch:
commit 26bba35a6991be6a2b039c47d1c7c9cece746d17
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Fri Nov 28 20:12:32 2008 +0100

    Disable the non-PIC library test case on non-i386
    
    At least allow the test suite to complete on other architectures
    (although not yet successfully)

diff --git a/testset/libbaz/Makefile b/testset/libbaz/Makefile
index 4a3bf2d..b388b8c 100644
--- a/testset/libbaz/Makefile
+++ b/testset/libbaz/Makefile
@@ -4,6 +4,12 @@ CC=gcc
 CFLAGS=-Wall -Winline -O2
 
 OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(OBJS)
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifneq ($(DEB_HOST_ARCH),i386)
+NOPICOBJS = $(SHOBJS)
+endif
 
 all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b
 
@@ -13,14 +19,14 @@ libbaz2.so.1.0: libbaz2.so.1.0.3b
 	ln -sf $^ $@
 
 # Oops, forget the soname altogether
-libbaz1.so.1.0.3b: $(OBJS)
+libbaz1.so.1.0.3b: $(NOPICOBJS)
 	$(CC) -o $@ -shared $^ -lc
 
-libbaz2.so.1.0.3b: $(OBJS:%.o=%.sho)
+libbaz2.so.1.0.3b: $(SHOBJS)
 	$(CC) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
 
-# Non-PIC.
-libbaz3.so.1.0.3b: $(OBJS)
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
 	$(CC) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
 
 #%.o-noreentrant: %.c
@@ -37,7 +43,7 @@ libbaz2.a: $(OBJS)
 	ranlib $@
 
 # The pic one in the .a (wrong), no archive table
-libbaz1.a: $(OBJS:%.o=%.sho)
+libbaz1.a: $(SHOBJS)
 	ar cqS $@ $^
 
 clean:

-- 
Debian package checker


Reply to: