Somewhere between 4.2.1-4.3.5 apple decided to make the sysctl variables that disable codesign check "read only" this means you cant disable them with a simple sysctl command. Im now on iOS5 and it still exists. This didnt used to be a real issue, but Ive been getting errors when compiling big programs. The error I get is in configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... arm-apple-darwin11.0.0
checking host system type... arm-apple-darwin11.0.0
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Here is the issue, configure creates a test program "a.out" then trys to run it but cant because it is not signed, so then it stops because it thinks it cant run c compiled programs. There needs to be a work around this, either someway to disable codesign another way. Here is the part of the config.log that tells me this is the case:
configure:2246: checking whether the C compiler works
./configure: line 2253: 11872 Killed: 9 ./$ac_file
configure:2255: $? = 137
configure:2264: error: cannot run C compiled programs.
only thing I can think of is find the rule in the configure script that runs a.out and sign it before it is run. Which is kind of a pain in the ass. Whatch think?