Changeset 42368


Ignore:
Timestamp:
2014-09-01T15:21:36+02:00 (3 years ago)
Author:
blogic
Message:

busybox: Fix pam_start link errors when PAM support is enabled

Patch to BusyBox Makefile to fix linker errors when PAM support is enabled by
CONFIG_BUSYBOX_CONFIG_PAM=y. Typical errors include:
login.c:(.text.login_main+0x122): undefined reference to `pam_start'

Signed-off-by: Stephen Parry <sgparry@…>

Backport of r42195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/barrier_breaker/package/utils/busybox/Makefile

    r41411 r42368  
    1818PKG_MD5SUM:=337d1a15ab1cb1d4ed423168b1eb7d7e 
    1919 
    20 PKG_BUILD_DEPENDS:=BUSYBOX_USE_LIBRPC:librpc 
     20PKG_BUILD_DEPENDS:=BUSYBOX_USE_LIBRPC:librpc BUSYBOX_CONFIG_PAM:libpam 
    2121PKG_BUILD_PARALLEL:=1 
    2222PKG_CHECK_FORMAT_SECURITY:=0 
     
    4343  TITLE:=Core utilities for embedded Linux 
    4444  URL:=http://busybox.net/ 
    45   DEPENDS:=+BUSYBOX_USE_LIBRPC:librpc 
     45  DEPENDS:=+BUSYBOX_USE_LIBRPC:librpc +BUSYBOX_CONFIG_PAM:libpam 
    4646  MENU:=1 
    4747endef 
     
    8181endif 
    8282 
     83ifdef CONFIG_BUSYBOX_CONFIG_PAM 
     84  TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include 
     85  export LDFLAGS=$(TARGET_LDFLAGS) 
     86  LDLIBS += pam pam_misc pthread 
     87endif 
     88 
    8389define Build/Compile 
    8490        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ 
Note: See TracChangeset for help on using the changeset viewer.