mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing run file and lib name on macos
This commit is contained in:
@@ -1 +1,7 @@
|
||||
clang main.c ../libmlx.so -lSDL2 -g && ./a.out
|
||||
#!/bin/bash
|
||||
|
||||
if [ $(uname -s) = 'Darwin' ]; then
|
||||
clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g && ./a.out;
|
||||
else
|
||||
clang main.c ../libmlx.so -lSDL2 -g && ./a.out;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user