summaryrefslogtreecommitdiffstats
path: root/stubs
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-06-26 20:07:58 +0000
committerJeremy Katz <katzj@redhat.com>2003-06-26 20:07:58 +0000
commit727beab943c7552df88093941d740a051ed397e1 (patch)
tree52aedc76c6f21c0ba6e4e751215c38b7d6c583bc /stubs
parentf61783130d1fd89f050d93a4ee1ee7c5a976a39b (diff)
downloadanaconda-727beab943c7552df88093941d740a051ed397e1.tar.gz
anaconda-727beab943c7552df88093941d740a051ed397e1.tar.xz
anaconda-727beab943c7552df88093941d740a051ed397e1.zip
libbzip2 stub goes away so that we can use bzip in the second stage
Diffstat (limited to 'stubs')
-rw-r--r--stubs/Makefile8
-rw-r--r--stubs/bzip.c41
2 files changed, 0 insertions, 49 deletions
diff --git a/stubs/Makefile b/stubs/Makefile
index 59a69da25..94158289a 100644
--- a/stubs/Makefile
+++ b/stubs/Makefile
@@ -1,19 +1,11 @@
include ../Makefile.inc
-LIBBZ = libbz2.so.1
LIBUTF8 = libunicode-lite.so.1
TARGETS= $(LIBUTF8)
-ifneq (ia64, $(ARCH))
-TARGETS += $(LIBBZ)
-endif
-
all: $(TARGETS)
-$(LIBBZ): bzip.c
- gcc -fPIC -shared -o $@ $<
-
$(LIBUTF8): unicode-lite.c
gcc -fPIC -shared -o $@ $< -lwlite
diff --git a/stubs/bzip.c b/stubs/bzip.c
deleted file mode 100644
index b6f304bf9..000000000
--- a/stubs/bzip.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* empty bzip stubs */
-
-# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
-# define _strong_alias(name, aliasname) \
- extern __typeof (name) aliasname __attribute__ ((alias (#name)));
-
-void * bzdopen(int fd, const char *mode) {
- return (void *) 0;
-}
-
-void * bzopen(const char * fn, const char *mode) {
- return (void *) 0;
-}
-
-const char * bzerror(void * b, int * err) {
- return (void *) 0;
-}
-
-int bzwrite(void * b, void * buf, int len) {
- return -1;
-}
-
-int bzread(void * b, void * buf, int len) {
- return -1;
-}
-
-void bzclose(void * b) {
-}
-
-int bzflush(void * b) {
- return 0;
-}
-
-strong_alias(bzclose, BZ2_bzclose)
-strong_alias(bzdopen, BZ2_bzdopen)
-strong_alias(bzerror, BZ2_bzerror)
-strong_alias(bzflush, BZ2_bzflush)
-strong_alias(bzopen, BZ2_bzopen)
-strong_alias(bzread, BZ2_bzread)
-strong_alias(bzwrite, BZ2_bzwrite)
-