Changeset 9632


Ignore:
Timestamp:
2007-11-29T19:30:27+01:00 (10 years ago)
Author:
nbd
Message:

Fix zlib for powerpc

For some architectures like powerpc, the library must be compiled with
-fPIC
(checked also for mips/mipsel)

Signed-off-by: Thomas Langer <thomas.langer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/zlib/Makefile

    r9052 r9632  
    1111PKG_NAME:=zlib 
    1212PKG_VERSION:=1.2.3 
    13 PKG_RELEASE:=4 
     13PKG_RELEASE:=5 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    3030                $(TARGET_CONFIGURE_OPTS) \ 
    3131                LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \ 
    32                 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \ 
     32                CFLAGS="$(TARGET_CFLAGS) -fPIC $(CFLAGS_LARGEFILE)" \ 
    3333                UNAME_S="Linux" \ 
    3434                ./configure \ 
     
    4141        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    4242                $(TARGET_CONFIGURE_OPTS) \ 
    43                 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \ 
     43                CFLAGS="$(TARGET_CFLAGS) -fPIC $(CFLAGS_LARGEFILE)" \ 
    4444                libz.a libz.so 
    4545        mkdir -p $(PKG_INSTALL_DIR) 
Note: See TracChangeset for help on using the changeset viewer.