pspdev / psplibraries

A script to automatically build open-source libraries for PSP homebrew development.
47 stars 45 forks source link

-lGL needs -lm #48

Closed nicolas-robin closed 4 years ago

nicolas-robin commented 4 years ago

This PR fixes linker errors when building SDL_Image and SDL_ttf :

/usr/local/pspdev/psp/lib/libGL.a(glLight.o): In function `glLightfv':
(.text+0xdf8): undefined reference to `cosf'
collect2: error: ld returned 1 exit status
/usr/local/pspdev/psp/lib/libGL.a(glLight.o): In function `glLightfv':
(.text+0xdf8): undefined reference to `cosf'
collect2: error: ld returned 1 exit status
/usr/local/pspdev/psp/lib/libGL.a(glLight.o): In function `glLightfv':
(.text+0xdf8): undefined reference to `cosf'
collect2: error: ld returned 1 exit status
sharkwouter commented 4 years ago

Thanks, I'll give it a try

dbeef commented 4 years ago

Thanks!

nicolas-robin commented 4 years ago

FYI @sharkwouter I didn't see #46 before, I have bypassed this issue with https://github.com/pspdev/pspdev-docker/pull/7

sharkwouter commented 4 years ago

Well, I made it this afternoon. I'm trying to clean up all the errors seen when running libraries.sh in docker right now. I had missed your pull request, although I do think #46 is a better solution as it solves it for people trying to install locally as well.

nicolas-robin commented 4 years ago

Yes totally agreed. https://github.com/pspdev/pspdev-docker/pull/7 may still be needed if other stuff depends on sh not being dash.