Changeset 860


Ignore:
Timestamp:
2005-05-12T23:32:55+02:00 (13 years ago)
Author:
nbd
Message:

fix postgres build with gcc 3.4+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/postgresql/Makefile

    r748 r860  
    2222IDIR_LIBPQ:=$(PKG_BUILD_DIR)/ipkg 
    2323INFO_LIBPQ:=$(IPKG_STATE_DIR)/info/libpq.list 
    24  
    25 EXTRA_CFLAGS:= 
    26 ifeq ($(BR2_GCC_3_4),y) 
    27         EXTRA_CFLAGS += -fno-unit-at-a-time 
    28 endif 
    2924 
    3025$(DL_DIR)/$(PKG_SOURCE): 
     
    8378 
    8479$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured 
    85         $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
    86                 $(TARGET_CONFIGURE_OPTS) 
     80        $(MAKE) -C "$(PKG_BUILD_DIR)/src" \ 
     81                $(TARGET_CONFIGURE_OPTS) \ 
     82                submake-libpq 
    8783        touch $(PKG_BUILD_DIR)/.built 
    8884 
     
    9086        $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
    9187                DESTDIR="$(STAGING_DIR)" \ 
    92                 install 
     88                install-all-headers 
     89        cp -a $(PKG_BUILD_DIR)/src/interfaces/libpq/libpq.so* $(STAGING_DIR)/usr/lib 
    9390 
    9491$(IPKG_LIBPQ): $(STAGING_DIR)/usr/lib/libpq.so 
Note: See TracChangeset for help on using the changeset viewer.