From 806c260893468b18f8d36fcce95cfb10a776099b Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Thu, 26 Dec 2024 00:16:45 +0000 Subject: [PATCH] Fix linking issues --- compile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compile b/compile index 7e5c694..299b413 100755 --- a/compile +++ b/compile @@ -3,15 +3,15 @@ CC=clang CFLAGS="-g -c -Wall -Isrc/glad/include" CXX=clang++ -CXXFLAGS="-g -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/build/include" -LIBS="$(pkg-config --libs sdl2) -ldl -Lsrc/assimp/build/lib -lassimp" +CXXFLAGS="-g -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/include -Isrc/assimp/build/include" +LIBS="$(pkg-config --libs sdl2) -ldl -lz -lminizip -Lsrc/assimp/build/lib/ -lassimp" GLAD_SRC="src/glad/src/glad.c" GLAD_OBJ="glad.o" SRC="src/*.cc $GLAD_OBJ src/glm/glm/glm.cppm" OUT=main (set -x ; $CC $CFLAGS $GLAD_SRC -o $GLAD_OBJ) -(set -x ; $CXX $CXXFLAGS $LIBS $SRC -o $OUT) +(set -x ; $CXX $CXXFLAGS $SRC $LIBS -o $OUT) if [[ -f $GLAD_OBJ ]]; then rm $GLAD_OBJ