Skip to content

Instantly share code, notes, and snippets.

View Evian-Zhang's full-sized avatar

EvianZhang Evian-Zhang

  • Beijing, China
  • 07:51 (UTC +08:00)
View GitHub Profile
@Evian-Zhang
Evian-Zhang / find_sdk_root.sh
Created June 15, 2022 09:03
Proper way to handle "ld: library not found for -lSystem" in macOS
SDKROOT=`/usr/bin/xcrun --show-sdk-path -sdk macosx`
as test.s -o test.o
ld test.o -lSystem -L $(SDKROOT)/usr/lib -o test