tolong_saya | hello | 01:44 |
---|---|---|
tolong_saya | hyperair: hi! | 01:45 |
hyperair | hi | 01:45 |
hyperair | nice nickname. | 01:45 |
tolong_saya | haha | 01:47 |
tolong_saya | hyperair: hey just want to ask, when you build a source, how do you compile the binary statically? | 01:50 |
hyperair | gcc -static foo.c | 01:51 |
hyperair | or g++ -static foo.cc | 01:51 |
hyperair | depending on whether you're doing C or C++ | 01:51 |
tolong_saya | just pass -static switch during make? as simple as that? | 01:51 |
hyperair | yep | 01:51 |
hyperair | are you using a build system of some sort? | 01:52 |
hyperair | or just raw make? | 01:52 |
tolong_saya | yep build system | 01:52 |
hyperair | autotools? | 01:53 |
tolong_saya | yeah | 01:53 |
hyperair | is this your project or just some project you're compiling? | 01:53 |
hyperair | i think some projects allow you to use ./configure --enable-static | 01:53 |
hyperair | http://sourceware.org/autobook/autobook/autobook_85.html | 01:54 |
hyperair | if it's your project and you want to force static builds, then you should add -all-static to target_LDFLAGS | 01:55 |
hyperair | http://www.sourceware.org/autobook/autobook/autobook_89.html | 01:55 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!