liberize / ssc

Convert shell script to binary
GNU General Public License v3.0
63 stars 17 forks source link

rc.4 has no CXXFLAGS set #13

Closed TJokiel closed 7 months ago

TJokiel commented 7 months ago

Please add CXXFLAGS for rc4 otherwise cross compilation fails when '-s' (static) and '-4' flags are used.

Please change: [ -f ./rc4 ] || $CXX -std=$CXX_STANDARD "$DIR/rc4.cpp" -o rc4 || exit 1

to: [ -f ./rc4 ] || $CXX $CXXFLAGS -std=$CXX_STANDARD "$DIR/rc4.cpp" -o rc4 || exit 1

Thank you

liberize commented 7 months ago

I think the problem is $CXX is a cross compiler, so the generated rc4 binary cannot run on host os. I'll change $CXX to host compiler.

liberize commented 7 months ago

Please pull latest code and test it.

TJokiel commented 7 months ago

Problem resolved.