Fails to build on PPC (Patch included)
Status: Beta
Brought to you by:
hessint
The following patch fixes a linker error on PPC due to the compiler choosing to not inline the sub_cross2d function.
gcc -std=c99 -o mesh2hmap main.o mesh2hmap.o parser.o output.o matrix.o -lm
mesh2hmap.o: In function `get_grid_height':
mesh2hmap.c:(.text+0x2f8): undefined reference to `sub_cross2d'
mesh2hmap.c:(.text+0x344): undefined reference to `sub_cross2d'
collect2: ld returned 1 exit status
make[1]: *** [mesh2hmap] Error 1
make[1]: Leaving directory `/home/mb/develop/svn/mesh2hmap/src'
make: *** [all-recursive] Error 1
Patch
This also fixes compilation for x86_64.