colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 194c8c3440b5934b661d76a04e274b76bce9bcc4
Parent: 1e05b8a9864deaa75dd069b6ac8bcc4f1510114f
Author: Randy Palamar
Date:   Wed, 31 Jul 2024 11:39:38 -0600

make sure -lm is specified for glibc and fix include path

Diffstat:
Mbuild.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh cflags="-march=native -std=c11 -O3 -Wall" -ldflags="-lraylib" +ldflags="-lraylib -lm" debug=${DEBUG} cc=${CC:-cc} @@ -16,12 +16,12 @@ else git submodule update --init --depth=1 external/raylib cmake --install-prefix="${PWD}/external" \ -G "Ninja" -B external/raylib/build -S external/raylib \ - -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_INSTALL_LIBDIR=lib -D CMAKE_BUILD_TYPE="Release" \ -D CUSTOMIZE_BUILD=ON -D WITH_PIC=ON -D BUILD_EXAMPLES=OFF cmake --build external/raylib/build cmake --install external/raylib/build fi - cflags="$cflags -I./external/raylib/include" + cflags="$cflags -I./external/include" ldflags="-L./external/lib $ldflags" fi