Last active
September 27, 2023 15:48
-
-
Save BuonOmo/1602c3fc050939ae4e40c1b91171036b to your computer and use it in GitHub Desktop.
Ruby flags for compiling and running ruby in C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See also https://silverhammermba.github.io/emberb/embed/ | |
ruby-gcc-flags() { | |
[[ "$(rbenv version)" = "system" ]] && return 1 | |
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(rbenv prefix)/lib/pkgconfig" \ | |
pkg-config --cflags --libs ruby-$(rbenv version | cut -d. -f1-2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment