The -O option optimizes links if the number is one or greater. When LDFLAGS is in the mysql or kerberos LDFLAGS, Samba fails in linking to them because it either doesn't recognize -O or -O should not be included in the output of the other packages' mysql_config --ldflags or krb5-config --ldflags output. Reproducible: Always Steps to Reproduce: 1. Compile kerberos and/or mysql with -O1 in LDFLAGS. 2. Compile samba with support for kerberos and/or mysql appropriately. Actual Results: samba complains about -O being unrecognized at some point. Expected Results: I am not clear whether samba should be recognizing -O or kerberos and mysql should be filtering them out of the --ldflags output.
*** This bug has been marked as a duplicate of 65002 ***