Seems like I was wrong. It will fail even if the default flags are blocked:
>From the build log after blanking out the flags from dpkg-buildpackage ld -o libcgi-java.so cgi-java.o ld: warning: cannot find entry symbol _start; defaulting to 00000000004000e8 cgi-java.o: In function `Java_cx_ath_matthew_cgi_CGI_getfullenv': /tmp/buildd/libmatthew-java-0.7.1/cgi-java.c:30: undefined reference to `environ' /tmp/buildd/libmatthew-java-0.7.1/cgi-java.c:34: undefined reference to `environ' cgi-java.o: In function `Java_cx_ath_matthew_cgi_CGI_getenv': /tmp/buildd/libmatthew-java-0.7.1/cgi-java.c:42: undefined reference to `getenv' -- libmatthew-java 0.7.1-1 refuse to build https://bugs.launchpad.net/bugs/239765 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs