[package] openssl: don't fail with empty TARGET_LDFLAGS
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 03:54:09 +0000 (03:54 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 03:54:09 +0000 (03:54 +0000)
SVN-Revision: 29770

package/openssl/Makefile

index cc253d6..48e8a42 100644 (file)
@@ -142,7 +142,7 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc $(1)/usr/lib/pkgconfig/
-       $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc
+       $(if $(TARGET_LDFLAGS),$(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc)
 endef
 
 define Package/libopenssl/install