Skip to content

Commit 797aaf1

Browse files
committed
remove libdir
1 parent 5a7fd8c commit 797aaf1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SPC/store/scripts/zig-cc.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22

3-
LIBDIR="$(realpath "$(dirname "$(gcc -print-file-name=libc.so)")")"
43
SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
54
BUILDROOT_ABS="$(realpath "$SCRIPT_DIR/../../buildroot/include" 2>/dev/null || echo "")"
65
PARSED_ARGS=()
@@ -69,7 +68,7 @@ else
6968
TARGET="${SPC_TARGET}-${SPC_LIBC}"
7069
[ -n "$SPC_LIBC_VERSION" ] && TARGET="${TARGET}.${SPC_LIBC_VERSION}"
7170

72-
output=$(zig cc -target "$TARGET" -L"$LIBDIR" -lstdc++ "${PARSED_ARGS[@]}" 2>&1)
71+
output=$(zig cc -target "$TARGET" -lstdc++ "${PARSED_ARGS[@]}" 2>&1)
7372
status=$?
7473

7574
filtered_output=$(echo "$output" | grep -v "version '.*' in target triple")
@@ -81,7 +80,7 @@ else
8180

8281
if echo "$output" | grep -q "version '.*' in target triple"; then
8382
TARGET_FALLBACK="${SPC_TARGET}-${SPC_LIBC}"
84-
output=$(zig cc -target "$TARGET_FALLBACK" -L"$LIBDIR" -lstdc++ "${PARSED_ARGS[@]}" 2>&1)
83+
output=$(zig cc -target "$TARGET_FALLBACK" -lstdc++ "${PARSED_ARGS[@]}" 2>&1)
8584
status=$?
8685

8786
filtered_output=$(echo "$output" | grep -v "version '.*' in target triple")

0 commit comments

Comments
 (0)