Skip to content

Commit

Permalink
skip darwin; include headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Mar 31, 2023
1 parent 5f0e9e2 commit f0356c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/gnu.org/glibc/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ test:
dependencies:
gnu.org/gcc: '*'
script: |
if test "{{hw.platform}}" != "linux"; then
echo "glibc is only supported on Linux"
exit 0
fi
# Putting ourselves in the LD_LIBRARY_PATH breaks literally everything else...
export LD_LIBRARY_PATH=$(echo LD_LIBRARY_PATH | tr ':' '\n' | grep -v {{prefix}} | tr '\n' ':')
test "{{hw.platform}}" = "darwin" && exit 0
Expand All @@ -89,6 +94,7 @@ test:
-nostdinc \
-nostdlib \
-Wl,--rpath="{{prefix}}/lib" \
-I{{deps.gnu.org/gcc.prefix}}/lib/gcc/$ARCH-unknown-linux-gnu/{{deps.gnu.org/gcc.version}}/include \
-std=c11 \
-o test \
-v \
Expand Down

0 comments on commit f0356c8

Please sign in to comment.