Skip to content

Commit

Permalink
moving linker flags to LDFLAGS parameter (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
SelvinPL authored Sep 19, 2024
1 parent e375f13 commit 7ed0000
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build-rgbds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ patch -p1 < ../rgbds.patch


MAKE_ARGS="Q= PNGCFLAGS= PNGLDFLAGS= PNGLDLIBS="
CXXFLAGS="-O3 -flto -DNDEBUG -g2 -s EXPORT_ES6=1 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=['FS'] -s USE_LIBPNG"
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS} -s 'EXPORT_NAME=createRgbAsm'" rgbasm
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS} -s 'EXPORT_NAME=createRgbLink'" rgblink
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS} -s 'EXPORT_NAME=createRgbFix'" rgbfix
CXXFLAGS="-O3 -flto -DNDEBUG -s USE_LIBPNG"
LDFLAGS="-s EXPORT_ES6=1 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=['FS']"
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS} -s 'EXPORT_NAME=createRgbAsm'" rgbasm
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS} -s 'EXPORT_NAME=createRgbLink'" rgblink
emmake make ${MAKE_ARGS} CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS} -s 'EXPORT_NAME=createRgbFix'" rgbfix

0 comments on commit 7ed0000

Please sign in to comment.