[packages] curl: fix syntax error in OpenWrt Makefile
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 14:48:57 +0000 (14:48 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 14:48:57 +0000 (14:48 +0000)
SVN-Revision: 29775

libs/curl/Makefile

index 6b3492c..b7e99c0 100644 (file)
@@ -98,7 +98,7 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.{a,so*} $(1)/usr/lib/
        $(CP) $(PKG_BUILD_DIR)/libcurl.pc $(1)/usr/lib/pkgconfig/
        $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/curl-config
-       $(if $(TARGET_LDFLAGS),$(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/libcurl.pc)
+       [ -n "$(TARGET_LDFLAGS)" ] && $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/libcurl.pc || true
        ln -sf $(STAGING_DIR)/usr/bin/curl-config $(2)/bin/
 endef