Skip to content

Commit bc272ec

Browse files
committed
external_deps: workaround a GLEW build error on FreeBSD
1 parent 5268c9c commit bc272ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

external_deps/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ build_glew() {
609609
glew_env+=(CFLAGS.EXTRA="${CFLAGS}")
610610
glew_options+=(LIBDIR="${PREFIX}/lib" LD="${CC}")
611611
;;
612+
freebsd-*-*)
613+
glew_env+=(CFLAGS.EXTRA="${CFLAGS}")
614+
sed -e 's/ -soname / -Wl,-soname=/' config/Makefile.freebsd > config/Makefile.freebsd-fix
615+
glew_options+=(SYSTEM=freebsd-fix LD="${CC}")
616+
;;
612617
*)
613618
log ERROR 'Unsupported platform for GLEW'
614619
;;

0 commit comments

Comments
 (0)