You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current build.sh script depends on GNU bash (#!/bin/bash), which is not available on all systems. Consider using the more portable POSIX shell (#!/bin/sh) instead which is available on all POSIX systems... I went ahead and converted the build.sh script for you, the changes I made are:
Replaced bash-specific syntax like [[ ... ]] and ${f//...} with the equivalent POSIX syntax
Renamed $lflags to $ldflags for clarity, as "lflags" generally refers to lexer flags not linker flags
Added pkg-config commands for finding the correct cflags and ldflags for SDL2 on Linux, in case the library is installed in a non-standard location (if pkg-config is not available then the commands will simply become empty strings)
The current
build.sh
script depends on GNU bash (#!/bin/bash
), which is not available on all systems. Consider using the more portable POSIX shell (#!/bin/sh
) instead which is available on all POSIX systems... I went ahead and converted thebuild.sh
script for you, the changes I made are:[[ ... ]]
and${f//...}
with the equivalent POSIX syntax$lflags
to$ldflags
for clarity, as "lflags" generally refers to lexer flags not linker flagspkg-config
commands for finding the correct cflags and ldflags for SDL2 on Linux, in case the library is installed in a non-standard location (ifpkg-config
is not available then the commands will simply become empty strings)P.S. you might want to look into Makefiles.
The text was updated successfully, but these errors were encountered: