Skip to content

Commit

Permalink
reverse symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Nov 14, 2023
1 parent ba84e9b commit ac2be2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ for i in `ls`; do
# Headers and libraries are installed to targetsDir
mkdir -p ${PREFIX}/${targetsDir}
mkdir -p ${PREFIX}/$i
cp -rv $i ${PREFIX}/${targetsDir}
if [[ $i == "lib" ]]; then
cp -rv $i ${PREFIX}/
for j in "$i"/*.so*; do
# Shared libraries are symlinked in $PREFIX/lib
ln -s ${PREFIX}/${targetsDir}/$j ${PREFIX}/$j
ln -s ${PREFIX}/$j ${PREFIX}/${targetsDir}/$j
done
else
cp -rv $i ${PREFIX}/${targetsDir}
fi
else
# Put all other files in targetsDir
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ source:
sha256: e16c1214fb7ae1bb60a9224e07b70aa5fd03310226140672ab3b409ddf4ae2a7 # [win]

build:
number: 0
number: 1
skip: true # [osx]

test:
Expand Down

0 comments on commit ac2be2a

Please sign in to comment.