Skip to contentSkip to conversation

poppler: link with libatomic when needed

PATCH New Waldemar Brodkorb 2 participants 3 messages May 28, 2018 – Jun 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 poppler: link with libatomic when needed

Following errors might occur on architectures required to use gcc libatomics:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line

This is often the case for sparcv8 32 bit toolchains.

See 55a9d6d55888b04ec6c476399e5b98a2412995f5 and 03f6e005e6a9617767b24a9026da9477848020cc.

Fixes:
http://autobuild.buildroot.net/results/64a96663a48ab644bc03c9a3ec2d6a644119dee6
http://autobuild.buildroot.net/results/82e85e12478fc1972b70ad728ed7c1554920c9e3

---
v1 -> v2:
- more verbose commit message
- move code to generic section
- use LDFLAGS instead of CXXFLAGS, LIBS are ignored.

---
 package/poppler/poppler.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/poppler/poppler.mk +4 -0
index 5946cbe..bad61a6 100644
@@ -14,6 +14,10 @@ POPPLER_INSTALL_STAGING = YES
 POPPLER_CONF_OPTS = --with-font-configuration=fontconfig \
 	--enable-xpdf-headers
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+POPPLER_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
+endif
+
 ifeq ($(BR2_PACKAGE_CAIRO),y)
 POPPLER_CONF_OPTS += --enable-cairo-output
 POPPLER_DEPENDENCIES += cairo
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 poppler: link with libatomic when needed

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Following errors might occur on architectures required to use gcc libatomics:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line

This is often the case for sparcv8 32 bit toolchains.

See 55a9d6d55888b04ec6c476399e5b98a2412995f5 and 03f6e005e6a9617767b24a9026da9477848020cc.

Fixes:
http://autobuild.buildroot.net/results/64a96663a48ab644bc03c9a3ec2d6a644119dee6
http://autobuild.buildroot.net/results/82e85e12478fc1972b70ad728ed7c1554920c9e3

Quoted 6 lines

---
v1 -> v2:
- more verbose commit message
- move code to generic section
- use LDFLAGS instead of CXXFLAGS, LIBS are ignored.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH v2 1/1 poppler: link with libatomic when needed

In reply to Waldemar Brodkorb
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Following errors might occur on architectures required to use gcc libatomics:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line

This is often the case for sparcv8 32 bit toolchains.

See 55a9d6d55888b04ec6c476399e5b98a2412995f5 and 03f6e005e6a9617767b24a9026da9477848020cc.

Fixes:
http://autobuild.buildroot.net/results/64a96663a48ab644bc03c9a3ec2d6a644119dee6
http://autobuild.buildroot.net/results/82e85e12478fc1972b70ad728ed7c1554920c9e3

Quoted 6 lines

---
v1 -> v2:
- more verbose commit message
- move code to generic section
- use LDFLAGS instead of CXXFLAGS, LIBS are ignored.

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard