Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I compile some specific package with my custom CFLAGS? Other searches suggest that I should just edit the formula by hand but I don't want to do because I want a solution that easily works in all cases.

Or do they strictly not want to allow custom CFLAGS? This suggests it.

Esp., in my case, I just want to pass one of -mmacosx-version-min=10.6, -isysroot /Developer/SDKs/MacOSX10.6.sdk, -DMAC_OS_X_VERSION_MIN_REQUIRED=1060 or --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk to CFLAGS because I want to build a library which is compatible with >=MacOSX 10.6.

share|improve this question
If you are to distribute the flags anyway, what about storing modified formula in a tap? – Jokester Nov 6 '13 at 12:47
@Jokester: What do you mean by "distribute flags"? Also, what modified formula? I don't want to modify any formula. – Albert Nov 6 '13 at 12:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.