Add support for specifying package-specific flags #1217

Merged
merged 2 commits into from Mar 5, 2014