libtool: link: gcc -g -O2 -malign-double -D_X86 -D_LINUX_FIX_ME -DHW_GAME_HOMEWORLD -DHW_BUILD_FOR_DISTRIBUTION -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wl,--as-needed -o homeworld homeworld.o ./Game/libhw_Game.a ./SDL/libhw_SDL.a ./Ships/libhw_Ships.a ./Missions/Generated/libhw_Generated.a ./ThirdParty/LZSS/libhw_LZSS.a ./ThirdParty/CRC/libhw_CRC.a ./ThirdParty/JPG/libhw_JPG.a ./Game/libhw_Game.a ./SDL/libhw_SDL.a ./Ships/libhw_Ships.a ./Missions/Generated/libhw_Generated.a ./ThirdParty/LZSS/libhw_LZSS.a -L/usr/X11R6/lib -lX11 -lXext -L/usr/lib/x86_64-linux-gnu -lSDL -lGL
/usr/bin/ld: ./Game/libhw_Game.a(CameraCommand.o): undefined reference to symbol 'acos@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:465: homeworld] Error 1
make[3]: Leaving directory '/home/blap/projects/HomeworldSDL/Linux/src'
seems we need to: Add "-lm" to the link command to link the maths library
this ought to be pulled-in when running ../configure --enable-network
but I don't get that working (being stupid).
see stuff/configure.ac
208: NET_LIBS="-lSDL_net -lm"
EDIT:
adding an environment variable:
export LIBS="-lm" did the trick
seems we need to: Add "-lm" to the link command to link the maths library
this ought to be pulled-in when running ../configure --enable-network
but I don't get that working (being stupid).
see stuff/configure.ac
208: NET_LIBS="-lSDL_net -lm"
EDIT:
adding an environment variable:
export LIBS="-lm" did the trick