/srv/irclogs.ubuntu.com/2013/06/03/#ubuntu-my.txt

tolong_sayahello01:44
tolong_sayahyperair: hi!01:45
hyperairhi01:45
hyperairnice nickname.01:45
tolong_sayahaha01:47
tolong_sayahyperair: hey just want to ask, when you build a source, how do you compile the binary statically?01:50
hyperairgcc -static foo.c01:51
hyperairor g++ -static foo.cc01:51
hyperairdepending on whether you're doing C or C++01:51
tolong_sayajust pass -static switch during make? as simple as that?01:51
hyperairyep01:51
hyperairare you using a build system of some sort?01:52
hyperairor just raw make?01:52
tolong_sayayep build system01:52
hyperairautotools?01:53
tolong_sayayeah01:53
hyperairis this your project or just some project you're compiling?01:53
hyperairi think some projects allow you to use ./configure --enable-static01:53
hyperairhttp://sourceware.org/autobook/autobook/autobook_85.html01:54
hyperairif it's your project and you want to force static builds, then you should add -all-static to target_LDFLAGS01:55
hyperairhttp://www.sourceware.org/autobook/autobook/autobook_89.html01:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!