Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #97 from tellowkrinkle/FixLinuxSDL2
Browse files Browse the repository at this point in the history
Fix sdl2 compile on systems with gnu sed
  • Loading branch information
DanielOaks committed Mar 31, 2020
2 parents bc26c33 + 48fe16e commit 4f887b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile.extlibs
Expand Up @@ -66,7 +66,8 @@ $(EB)/sdl2-config: $(SDLSRC)/Makefile
@ # We only make a static lib which means things using pkg-config will get it even if they think they're linking to a dynamic lib, breaking their ldflags
@ # Fix this by replacing `Libs: $libs\nLibs.static $staticonly` with `Libs: $libs $staticonly` in the pc file
@ # Note: This assumes Libs.private immediately follows Libs if it exists, which seems to be the case in most pc files that have it but isn't actually a requirement.
@sed -i '' -e ':a' -e 'N' -e '$$!ba' -e 's/\nLibs.private: //g' $(EL)/pkgconfig/sdl2.pc
@sed -e ':a' -e 'N' -e '$$!ba' -e 's/\nLibs.private: / /g' $(EL)/pkgconfig/sdl2.pc > $(EL)/pkgconfig/sdl2.pc.new
@mv $(EL)/pkgconfig/sdl2.pc.new $(EL)/pkgconfig/sdl2.pc

#-- SDL_image -----------------------------------------------------------------

Expand Down

0 comments on commit 4f887b8

Please sign in to comment.