diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-14 12:16:31 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-14 12:16:31 +0800 |
| commit | 405945827d88e3ef8517fc73382f7357608ad750 (patch) | |
| tree | d3c557e7e44b745539ac8120dede159bbfee12b6 /build.sh | |
| parent | ee1aa5715693f7a8bd4886641dea0f6900a30eaa (diff) | |
build the converters, fix konmodel tool, find X11 on the BSDs
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -44,6 +44,17 @@ case $platform in linux|bsd) LDLIBS="-lX11 -lXext -lXrandr -lm" DEFS="-D_POSIX_C_SOURCE=200809L" + # the BSDs keep X11 out of the default paths + case $(uname -s) in + NetBSD) x11=/usr/X11R7 ;; + OpenBSD) x11=/usr/X11R6 ;; + FreeBSD|DragonFly) x11=/usr/local ;; + *) x11= ;; + esac + if [ -n "$x11" ]; then + DEFS="$DEFS -I$x11/include" + LDLIBS="-L$x11/lib -Wl,-R$x11/lib $LDLIBS" + fi ;; windows) CC=${CC:-x86_64-w64-mingw32-gcc} |
