Browse Source

sendmail: fix confLIBSEARCHPATH to $(STAGING_DIR)

This fix issue 'cannot find -lnsl' on build server which has libnsl.so in
/usr/lib

Signed-off-by: Guo Li <uxgood.org@gmail.com>
lilik-openwrt-22.03
Guo Li 6 years ago
committed by Yousong Zhou
parent
commit
cbc948acf3
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      mail/sendmail/Makefile
  2. +2
    -1
      mail/sendmail/files/OpenWrt

+ 2
- 1
mail/sendmail/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sendmail
PKG_VERSION:=8.15.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://artfiles.org/sendmail.org/pub/sendmail/ \
@ -102,6 +102,7 @@ define Build/Prepare
$(CP) $(PKG_BUILD_DIR)/cf/cf/generic-linux.mc $(PKG_BUILD_DIR)/cf/cf/sendmail.mc
$(SED) 's@TARGET_CC@$(TARGET_CC)@g' $(PKG_BUILD_DIR)/devtools/Site/$(SITECONFIG)
$(SED) 's@TARGET_CFLAGS@$(TARGET_CFLAGS)@g' $(PKG_BUILD_DIR)/devtools/Site/$(SITECONFIG)
$(SED) 's@STAGING_DIR@$(STAGING_DIR)@g' $(PKG_BUILD_DIR)/devtools/OS/$(TARGET_OS)
endef
define Build/Compile


+ 2
- 1
mail/sendmail/files/OpenWrt View File

@ -7,7 +7,8 @@ define(`confSM_OS_HEADER', `sm_os_linux')
define(`confLIBS', `-ldl')
define(`confEBINDIR', `/usr/sbin')
define(`confMKDIR', `mkdir')
APPENDDEF(`confLIBSEARCH', `crypt nsl')
define(`confLIBSEARCHPATH', `STAGING_DIR/lib STAGING_DIR/usr/lib')
APPENDDEF(`confLIBSEARCH', `crypt')
define(`confMTCCOPTS', `-D_REENTRANT')
define(`confMTLDOPTS', `-lpthread')


Loading…
Cancel
Save