On Tue, Jul 15, 2014 at 11:06:42AM +0000, Viktor Dukhovni wrote: > On Tue, Jul 15, 2014 at 10:07:30AM +0000, Eray Aslan wrote: > > I am trying to support those who cross compile postfix. They do have > > gcc installed but it is not the linker they want. > > Makes sense, you may need to patch this yourself if you can't convince > Wietse that "${CC} -shared ..." is a good idea for just any old "${CC}".
On a semi-related note, a bump in cross compiling postfix is the postconf command used in the postfix-install script. The script calls postconf to get mail version, config directory, installed defaults and to prepare main.cf for installation. However, in a cross compile environment, the bin/postconf binary is for a different architecture than the build host and therefore does not work. I have seen people patch postfix-install and replace bin/postconf with /usr/bin/postconf - requires postfix to be already installed in the build machine - to work around the issue. Any suggestions on what would be a good/acceptable solution? Or even whether it is worth the trouble? -- Eray