Skip to content

Commit

Permalink
Pick up CPPFLAGS and LDFLAGS from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Feb 17, 2024
1 parent e042202 commit 7105e02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ Style/DocumentationMethod:
- 'example/**/*'
- 'ext/ilios/extconf.rb'

Style/FetchEnvVar:
Enabled: false

Style/GlobalVars:
Exclude:
- 'ext/ilios/extconf.rb'
Expand Down
3 changes: 3 additions & 0 deletions ext/ilios/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,7 @@ def self.install_from_source
CassandraDriverInstaller.install
end

$CPPFLAGS += " #{ENV['CPPFLAGS']}"
$LDFLAGS += " #{ENV['LDFLAGS']}"

create_makefile('ilios')

0 comments on commit 7105e02

Please sign in to comment.