Skip to content

Commit

Permalink
switch: fix compilation with latest toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed May 8, 2021
1 parent 2f7720e commit 92b985d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.lib
Expand Up @@ -1636,7 +1636,7 @@ make_cflags_and_ldflags() {
CFLAGS="-Wl,-q -O2 --std=gnu++14 $CFLAGS -O2 --std=gnu++14 -I$DEVKITPRO/portlibs/switch/include/SDL2 -I$DEVKITPRO/portlibs/switch/include -I$DEVKITPRO/devkitA64/aarch64-none-elf/include/ -D__SWITCH__ -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mlittle-endian -Wl,-q"
CXXFLAGS="-O2 --std=gnu++14 $CXXFLAGS -O2 --std=gnu++14 -Wl,-q"
# TODO: This needs to be autoconfigured properly (mostly SDL)
LIBS="$LIBS -specs=${DEVKITPRO}/libnx/switch.specs -L$DEVKITPRO/libnx/lib -Wl,--whole-archive -Wl,--no-whole-archive -lSDL2_mixer -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lpng -ljpeg -lfreetype -lm -lz -lnx -lstdc++"
LIBS="$LIBS -specs=${DEVKITPRO}/libnx/switch.specs -L$DEVKITPRO/libnx/lib -Wl,--whole-archive -Wl,--no-whole-archive -lSDL2_mixer -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lpng -ljpeg -lfreetype -lm -lz -lnx -lstdc++ -llzo2"
LDFLAGS="$CFLAGS $LDFLAGS -Wl,-q"
fi

Expand Down Expand Up @@ -2827,7 +2827,7 @@ detect_libtimidity() {
}

detect_fluidsynth() {
detect_library "$with_fluidsynth" "fluidsynth" "" "" "fluidsynth.h"
detect_library "$with_fluidsynth" "fluidsynth" "libfluidsynth.a" "" "fluidsynth.h"
}

detect_pkg_config() {
Expand Down

0 comments on commit 92b985d

Please sign in to comment.