I want to statically cross-compile minisign with musl (verify only would be fine) and I suspect re-implementing it would be easier than trying to figure out how to cross-compile it with cmake.
Conversation
Notices
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Saturday, 23-Dec-2023 06:01:53 JST Ryan Castellucci :nonbinary_flag: -
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Monday, 25-Dec-2023 23:38:27 JST Ryan Castellucci :nonbinary_flag: @dalias That's not far off, lol. I forked minisign and added a makefile.
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Monday, 25-Dec-2023 23:38:28 JST Rich Felker @ryanc $target-gcc -static *.c ? 🤪
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 26-Dec-2023 01:17:24 JST Ryan Castellucci :nonbinary_flag: @dalias This thing is four bloody pairs of .c and .h, I don't understand why it needs cmake.
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 26-Dec-2023 01:17:25 JST Rich Felker @ryanc I don't remember what it was, but once long ago I encountered a program with horribly broken build where, after hours of struggling trying to get it to work, I tried literally that, and it just worked. 🤣 🤦
-
Embed this notice
Aris Adamantiadis :verified:💲Paid (aris@infosec.exchange)'s status on Tuesday, 26-Dec-2023 01:29:04 JST Aris Adamantiadis :verified:💲Paid @ryanc @dalias I 100% prefer that to the orphan C files that are sometimes given to us by clients without any instructions on how to build them and what deps to expect. If you don't like the build system, writing a makefile and bypass cmake should take 10 minutes.
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 26-Dec-2023 02:32:17 JST Ryan Castellucci :nonbinary_flag: @aris @dalias I mean, sure, if you know how to write a makefile.
-
Embed this notice
Aris Adamantiadis :verified:💲Paid (aris@infosec.exchange)'s status on Tuesday, 26-Dec-2023 02:48:30 JST Aris Adamantiadis :verified:💲Paid @ryanc @dalias ... then use the provided cmakefile? There's no way in hell the hardcoded makefile that we find in the oldschool tarballs support cross compiling anyway.
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 26-Dec-2023 02:57:28 JST Ryan Castellucci :nonbinary_flag: @aris @dalias I wrote a makefile, and it handles cross compiling just fine - the C compiler is specified via the CC environment variable.
I know how to set up cross compiling for projects that use auto tools, but not cmake, and it was faster to just write my own makefile that supported cross compiling.
-
Embed this notice
Aris Adamantiadis :verified:💲Paid (aris@infosec.exchange)'s status on Tuesday, 26-Dec-2023 03:00:01 JST Aris Adamantiadis :verified:💲Paid @ryanc @dalias so you know how to write a makefile. Cmake is a very powerful tool if you just read the doc.
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 26-Dec-2023 03:14:08 JST Ryan Castellucci :nonbinary_flag: @aris @dalias I very much prefer simple composable tools, and don't want to have to learn advanced incantations of cmake to build one piece of software.
-
Embed this notice