gnu: android-f2fs-utils: Fix building with gcc-10.

* gnu/packages/android.scm (android-f2fs-utils)[arguments]: Add
  'set-compilation-flags' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-08-31 15:31:40 +02:00
parent 9055b93513
commit faf6963a1d
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -581,6 +581,9 @@ (define-public android-f2fs-utils
(modify-phases %standard-phases
(add-after 'unpack 'enter-source
(lambda _ (chdir "f2fs_utils") #t))
(add-before 'build 'set-compilation-flags
(lambda _
(setenv "CFLAGS" "-fcommon")))
(add-after 'install 'install-headers
(lambda* (#:key inputs outputs #:allow-other-keys)
(copy-recursively "." (string-append (assoc-ref outputs "out")