Skip to content

Instantly share code, notes, and snippets.

@nemolize
Created December 1, 2021 02:10
Show Gist options
  • Save nemolize/fff898fe2ef32f08a8abfccde39005c6 to your computer and use it in GitHub Desktop.
Save nemolize/fff898fe2ef32f08a8abfccde39005c6 to your computer and use it in GitHub Desktop.
Workaround if PHP 7.4.7 installation with phpenv fails with "error: ‘TRUE’ undeclared (first use in this function)"
# Ref: https://zenn.dev/kumamidori/articles/b6f79df64753bb
export CFLAGS="-Wno-error=implicit-function-declaration -DU_DEFINE_FALSE_AND_TRUE=1"
export CXXFLAGS="-Wno-error=implicit-function-declaration -DU_DEFINE_FALSE_AND_TRUE=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment