Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for p10 gcc-toolset-12 #50

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@ export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${PREFIX}/lib"

if [[ $ppc_arch == "p10" ]]
then
if [[ -z "${GCC_11_HOME}" ]];
if [[ -z "${GCC_HOME}" ]];
then
echo "Please set GCC_11_HOME to the install path of gcc-toolset-11"
echo "Please set GCC_HOME to the install path of gcc-toolset-12"
exit 1
else
export PATH=$GCC_11_HOME/bin:$PATH
export CC=$GCC_11_HOME/bin/gcc
export CXX=$GCC_11_HOME/bin/g++
export PATH=$GCC_HOME/bin:$PATH
export CC=$GCC_HOME/bin/gcc
export CXX=$GCC_HOME/bin/g++
export GCC=$CC
export GXX=$CXX
export AR=${GCC_11_HOME}/bin/ar
export LD=${GCC_11_HOME}/bin/ld
export NM=${GCC_11_HOME}/bin/nm
export OBJCOPY=${GCC_11_HOME}/bin/objcopy
export OBJDUMP=${GCC_11_HOME}/bin/objdump
export RANLIB=${GCC_11_HOME}/bin/ranlib
export STRIP=${GCC_11_HOME}/bin/strip
export READELF=${GCC_11_HOME}/bin/readelf
export AR=${GCC_HOME}/bin/ar
export LD=${GCC_HOME}/bin/ld
export NM=${GCC_HOME}/bin/nm
export OBJCOPY=${GCC_HOME}/bin/objcopy
export OBJDUMP=${GCC_HOME}/bin/objdump
export RANLIB=${GCC_HOME}/bin/ranlib
export STRIP=${GCC_HOME}/bin/strip
export READELF=${GCC_HOME}/bin/readelf
export HOST=powerpc64le-conda_cos7-linux-gnu

# Removing these libs so that opencv libraries link against libstdc++.so present on
# the system provided by gcc-toolset-11
# the system provided by gcc-toolset-12
rm ${PREFIX}/lib/libstdc++.so*
rm ${BUILD_PREFIX}/lib/libstdc++.so*
fi
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build:
# Things seem to change every patch versions, mostly the dnn module
- {{ pin_subpackage('libopencv', max_pin='x.x.x') }}
script_env:
- GCC_11_HOME #[ppc_arch == 'p10']
- GCC_HOME #[ppc_arch == 'p10']

requirements:
build:
Expand Down