diff mbox

[OpenWrt-Devel] Dangerous RPATH in uhttpd, uci, rpcd, ubus

Message ID 54D7DE57.8050805@openwrt.org
State Accepted
Headers show

Commit Message

Jo-Philipp Wich Feb. 8, 2015, 10:08 p.m. UTC
Hi Etienne,

please try the change below (totally untested... just form reading the
cmake manual).



~ Jow

Comments

Etienne Champetier Feb. 9, 2015, 7:49 a.m. UTC | #1
Hi

2015-02-08 23:08 GMT+01:00 Jo-Philipp Wich <jow@openwrt.org>:

> Hi Etienne,
>
> please try the change below (totally untested... just form reading the
> cmake manual).
>
> diff --git a/include/cmake.mk b/include/cmake.mk
> index 6ab628e..862a6a9 100644
> --- a/include/cmake.mk
> +++ b/include/cmake.mk
> @@ -61,6 +61,7 @@ define Build/Configure/Default
>                         -DCMAKE_INSTALL_PREFIX=/usr \
>                         -DDL_LIBRARY=$(STAGING_DIR) \
>                         -DCMAKE_PREFIX_PATH=$(STAGING_DIR) \
> +                       -DCMAKE_SKIP_RPATH=TRUE  \
>                         $(CMAKE_OPTIONS) \
>                 $(CMAKE_SOURCE_DIR) \
>         )
>
>
> ~ Jow
>
>
> r44328 is fixing this bug
Thanks for your fast response
Etienne
diff mbox

Patch

diff --git a/include/cmake.mk b/include/cmake.mk
index 6ab628e..862a6a9 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -61,6 +61,7 @@  define Build/Configure/Default
                        -DCMAKE_INSTALL_PREFIX=/usr \
                        -DDL_LIBRARY=$(STAGING_DIR) \
                        -DCMAKE_PREFIX_PATH=$(STAGING_DIR) \
+                       -DCMAKE_SKIP_RPATH=TRUE  \
                        $(CMAKE_OPTIONS) \
                $(CMAKE_SOURCE_DIR) \
        )