Whamcloud - gitweb
Patch from Brian Bergstrand to use the correct -fPIC flag for
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Mar 2004 03:46:49 +0000 (22:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Mar 2004 03:46:49 +0000 (22:46 -0500)
Darwin in order to get rid of the compiler warning.

15 files changed:
lib/ChangeLog
lib/Makefile.bsd-lib
lib/Makefile.darwin-lib
lib/blkid/ChangeLog
lib/blkid/Makefile.in
lib/e2p/ChangeLog
lib/e2p/Makefile.in
lib/et/ChangeLog
lib/et/Makefile.in
lib/ext2fs/ChangeLog
lib/ext2fs/Makefile.in
lib/ss/ChangeLog
lib/ss/Makefile.in
lib/uuid/ChangeLog
lib/uuid/Makefile.in

index fd64148..34d8b5a 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.bsd-lib, Makefile.darwin-lib: Define BSDLIB_PIC_FLAG
+               since Darwin requires -fPIC while NetBSD, FreeBSD,
+               et. al. requires -fpic.
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index 38f22da..61fee2b 100644 (file)
@@ -18,6 +18,7 @@ pic:
        mkdir pic
 
 BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION)
+BSDLIB_PIC_FLAG = -fpic
 
 image:         $(BSD_LIB)
 
index 77c5bac..84f05b8 100644 (file)
@@ -18,6 +18,7 @@ pic:
        mkdir pic
 
 BSD_LIB = $(BSDLIB_IMAGE).$(BSDLIB_VERSION).dylib
+BSDLIB_PIC_FLAG = -fPIC
 
 image:         $(BSD_LIB)
 
index fb5fac7..e09768e 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index fc6ecb2..5e27184 100644 (file)
@@ -60,7 +60,7 @@ DEPLIBS_BLKID=        $(DEPSTATIC_LIBBLKID) $(DEPSTATIC_LIBUUID)
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
 @DLL_CMT@              -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 all:: $(SMANPAGES)
 
index bd612e6..d5c04e8 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index e297315..f1e267b 100644 (file)
@@ -68,7 +68,7 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
 @DLL_CMT@              -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 installdirs::
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \
index bf8e0a9..0c65dda 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index 0b3b2ad..26506c8 100644 (file)
@@ -56,7 +56,7 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
 @DLL_CMT@              -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 @MAKEFILE_LIBRARY@
 @MAKEFILE_DLL@
index e43116b..4737f31 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index 18fbe63..f8b7acf 100644 (file)
@@ -170,7 +170,7 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
 @DLL_CMT@              -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 COMPILE_ET=../et/compile_et --build-tree
 
index 0164789..0d1357e 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index 6713feb..0999ebd 100644 (file)
@@ -53,7 +53,7 @@ XTRA_CFLAGS= -I$(srcdir)/../et
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) \
 @DLL_CMT@              $(ALL_CFLAGS) -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -DSHARED_ELF_LIB -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 # for the library
 
index 0185202..b3e9392 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
+
+       * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
+               -fpic or -fPIC
+
 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.35
index 0a6f796..ebcac04 100644 (file)
@@ -80,7 +80,7 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
 @DLL_CMT@      (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
 @DLL_CMT@              -o jump/$*.o -c $<)
 @ELF_CMT@      $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
-@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
+@BSDLIB_CMT@   $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
 
 all:: tst_uuid uuid_time $(SMANPAGES)