squid: uClibc workaround no longer required
PATCH 1/1 squid: uClibc workaround no longer required
As all librt and libpthread functions are integrated into libc for a while, workaround no longer required.
--- package/squid/squid.mk | 5 ----- 1 file changed, 5 deletions(-)
package/squid/squid.mk +0 -5
@@ -50,11 +50,6 @@ else SQUID_CONF_ENV += squid_cv_gnu_atomics=no endif -# On uClibc librt needs libpthread -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy) -SQUID_CONF_ENV += ac_cv_search_shm_open="-lrt -lpthread" -endif - ifeq ($(BR2_PACKAGE_OPENSSL),y) SQUID_CONF_OPTS += --with-openssl SQUID_DEPENDENCIES += openssl
Signature · 1 line
2.1.4
PATCH 1/1 squid: uClibc workaround no longer required
Quoted 13 lines · Waldemar Brodkorb
As all librt and libpthread functions are integrated into libc for a while, workaround no longer required.
Signed-off-by Waldemar Brodkorb <[email protected]>--- package/squid/squid.mk | 5 ----- 1 file changed, 5 deletions(-)package/squid/squid.mk +0
-0
package/squid/squid.mk else · line 56
Quoted 7 lines
package/squid/squid.mk +0
-4@@ -50,11 +50,6 @@ else SQUID_CONF_ENV += squid_cv_gnu_atomics=no endif -# On uClibc librt needs libpthread -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy) -SQUID_CONF_ENV += ac_cv_search_shm_open="-lrt -lpthread" -endif
In [1], Baruch wrote:
B> package/squid/squid.mk
B>
B> Needed for shm_open().
But indeed, the -lrt is added by the configure script, this workaround was only
needed for uClibc which used pthread functions from librt so needed to be linked with libpthread as well.
Adding Baruch in Cc to double-check. Baruch, can you confirm that this can
indeed be removed?
For me:
Regards,
Arnout
Quoted 5 lines
package/squid/squid.mk +0
-1- ifeq ($(BR2_PACKAGE_OPENSSL),y) SQUID_CONF_OPTS += --with-openssl SQUID_DEPENDENCIES += openssl
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 squid: uClibc workaround no longer required
Quoted 19 lines · Arnout Vandecappelle
Quoted 16 lines · Waldemar Brodkorb
As all librt and libpthread functions are integrated into libc for a while, workaround no longer required.
Signed-off-by Waldemar Brodkorb <[email protected]>--- package/squid/squid.mk | 5 ----- 1 file changed, 5 deletions(-)package/squid/squid.mk +0
-0@@ -50,11 +50,6 @@ else SQUID_CONF_ENV += squid_cv_gnu_atomics=no endif
Quoted 6 lines
package/squid/squid.mk else · line 56
Quoted 4 lines
package/squid/squid.mk +0
-4-# On uClibc librt needs libpthread -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy) -SQUID_CONF_ENV += ac_cv_search_shm_open="-lrt -lpthread" -endifIn [1], Baruch wrote:
Forgot:
[1] http://lists.busybox.net/pipermail/buildroot/2017-June/195212.html
Regards,
Arnout
Quoted 26 lines
B>
package/squid/squid.mk
B>
B> Needed forshm_open().But indeed, the -lrt is added by the configure script, this workaround was only
needed for uClibc which used pthread functions from librt so needed to be linked with libpthread as well.Adding Baruch in Cc to double-check. Baruch, can you confirm that this can
indeed be removed?For me:
Regards,
ArnoutQuoted 5 lines
package/squid/squid.mk +0
-1- ifeq ($(BR2_PACKAGE_OPENSSL),y) SQUID_CONF_OPTS += --with-openssl SQUID_DEPENDENCIES += openssl
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 squid: uClibc workaround no longer required
In reply to Arnout VandecappelleHi Arnout,
Quoted 28 lines · Arnout Vandecappelle
Quoted 13 lines · Waldemar Brodkorb
As all librt and libpthread functions are integrated into libc for a while, workaround no longer required.
Signed-off-by Waldemar Brodkorb <[email protected]>--- package/squid/squid.mk | 5 ----- 1 file changed, 5 deletions(-)package/squid/squid.mk +0
-0package/squid/squid.mk else · line 56
Quoted 7 lines
package/squid/squid.mk +0
-4@@ -50,11 +50,6 @@ else SQUID_CONF_ENV += squid_cv_gnu_atomics=no endif -# On uClibc librt needs libpthread -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy) -SQUID_CONF_ENV += ac_cv_search_shm_open="-lrt -lpthread" -endifIn [1], Baruch wrote:
B>
package/squid/squid.mk
B>
B> Needed forshm_open().
Quoted 6 lines
But indeed, the -lrt is added by the configure script, this workaround was only
needed for uClibc which used pthread functions from librt so needed to be linked with libpthread as well.Adding Baruch in Cc to double-check. Baruch, can you confirm that this can
indeed be removed?
Yes. I missed the uClibc condition when I wrote that. I have now checked with a current uClibc-ng toolchain, and indeed all former librt symbols are in the main libc. librt.a is empty.
Thanks Waldemar and Arnout for double checking.
Quoted 2 lines
For me:
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -Thomas Petazzoni
AppliedPATCH 1/1 squid: uClibc workaround no longer required
In reply to Waldemar BrodkorbHello,
Quoted 7 lines · Waldemar Brodkorb
As all librt and libpthread functions are integrated into libc for a while, workaround no longer required.
Signed-off-by Waldemar Brodkorb <[email protected]>--- package/squid/squid.mk | 5 ----- 1 file changed, 5 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com