Ticket #277 (new defect)

Opened 2 years ago

Last modified 2 years ago

fail to build media-libs/glew-1.5.1 due to incorrect libstdc++ path

Reported by: Openfree Owned by:
Priority: major Milestone: milestone5
Component: target Keywords:
Cc:

Description

fail to build media-libs/glew because gcc can't find libstdc++.so.6

Attachments

build.log (8.9 kB) - added by Openfree 2 years ago.
build log for media-libs/glew

Change History

Changed 2 years ago by Openfree

build log for media-libs/glew

in reply to: ↑ description ; follow-up: ↓ 2   Changed 2 years ago by Openfree

Replying to Openfree:

fail to build media-libs/glew because gcc can't find libstdc++.so.6

edit /usr/armv7a-softfloat-linux-gnueabi/etc/make.conf append "-Wl,-rpath,/usr/lib/gcc/armv7a-softfloat-linux-gnueabi/4.4.1/" to LDFLAGS fix this problem

in reply to: ↑ 1   Changed 2 years ago by Openfree

Replying to Openfree:

Replying to Openfree:

fail to build media-libs/glew because gcc can't find libstdc++.so.6

edit /usr/armv7a-softfloat-linux-gnueabi/etc/make.conf append "-Wl,-rpath,/usr/lib/gcc/armv7a-softfloat-linux-gnueabi/4.4.1/" to LDFLAGS fix this problem

instead make LDFLAGS global, here is ways just specify to one package. 1) edit /usr/armv7a-softfloat-linux-gnueabi/etc/portage/bashrc,append following lines

for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do

env=${ROOT}/etc/portage/env/${CATEGORY}/${conf} if [[ -f ${env} ]]; then

einfo "Reading specific environment from ${env}" . ${env}

fi

done

2) append following lines to /usr/armv7a-softfloat-linux-gnueabi/etc/portage/env/media-libs/glew export LDFLAGS="-Wl,-rpath,/usr/lib/gcc/armv7a-softfloat-linux-gnueabi/4.4.1"

  Changed 2 years ago by sleipnir

  • milestone changed from unsorted to milestone4

  Changed 2 years ago by sleipnir

  • milestone changed from milestone4 to milestone5
Note: See TracTickets for help on using tickets.