Skip to content

Commit

Permalink
fix makefile issue for custom application builds
Browse files Browse the repository at this point in the history
  • Loading branch information
billywhizz committed Aug 1, 2021
1 parent ddfb038 commit 289d5c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ debugger:
main: modules builtins.o deps/v8/libv8_monolith.a
$(CC) -c ${FLAGS} -DJUST_VERSION='"${RELEASE}"' -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -g -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter just.cc
$(CC) -c ${FLAGS} -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -g -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter main.cc
$(CC) -g -rdynamic -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o ${MODULES} -Wl,--end-group ${LFLAG} ${LIB} -o ${TARGET} -Wl,-rpath=/usr/local/lib/just
objcopy --only-keep-debug just just.debug
strip --strip-debug --strip-unneeded just
$(CC) -g -rdynamic -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o ${MODULES} -Wl,--end-group ${LFLAG} ${LIB} -o ${TARGET} -Wl,-rpath=/usr/local/lib/${TARGET}
objcopy --only-keep-debug ${TARGET} ${TARGET}.debug
strip --strip-debug --strip-unneeded ${TARGET}

main-static: modules builtins.o deps/v8/libv8_monolith.a
$(CC) -c -fno-exceptions -ffunction-sections -fdata-sections ${FLAGS} -DJUST_VERSION='"${RELEASE}"' -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter just.cc
$(CC) -c -fno-exceptions -ffunction-sections -fdata-sections ${FLAGS} -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter main.cc
$(CC) -s -static -flto -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o ${MODULES} -Wl,--end-group -Wl,--gc-sections ${LFLAG} ${LIB} -o ${TARGET}
objcopy --only-keep-debug just just.debug
strip --strip-debug --strip-unneeded just
$(CC) -s -static -flto -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o ${MODULES} -Wl,--end-group -Wl,--gc-sections ${LFLAG} ${LIB} -o ${TARGET} -Wl,-rpath=/usr/local/lib/${TARGET}
objcopy --only-keep-debug ${TARGET} ${TARGET}.debug
strip --strip-debug --strip-unneeded ${TARGET}

runtime: modules deps/v8/libv8_monolith.a ## build dynamic runtime
make MODULE=net module
Expand Down

0 comments on commit 289d5c3

Please sign in to comment.