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

Commit

Permalink
Fix sdl2 compile on systems with gnu sed
Browse files Browse the repository at this point in the history
  • Loading branch information
TellowKrinkle committed Mar 11, 2020
1 parent bc26c33 commit 48fe16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile.extlibs
Original file line number Diff line number Diff line change
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 48fe16e

Please sign in to comment.