Skip to content

Commit

Permalink
statically link the standard libraries for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-willis committed Mar 7, 2025
1 parent bdecc0b commit df20130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-secure-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ echo "Compiling Insomnia..."
g++ -lkernel32 -mwindows -c $CPP_DIR/final.cpp -o $CPP_DIR/insomnia.o

echo "Linking Insomnia..."
g++ -O2 -mwindows $CPP_DIR/insomnia.o $CPP_DIR/res.o -o $DEST_DIR/Insomnia.exe
g++ -O2 -static-libgcc -static-libstdc++ -mwindows $CPP_DIR/insomnia.o $CPP_DIR/res.o -o $DEST_DIR/Insomnia.exe

echo "Secure wapper built successfully."

Expand Down

0 comments on commit df20130

Please sign in to comment.