diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index bda6a2b48a..e01beaca86 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -623,10 +623,14 @@ as the 'native-search-paths' field." (srfi srfi-26)) ,@(package-arguments gcc)) ((#:configure-flags flags) - `(cons (string-append "--enable-languages=" - ,(string-join languages ",")) - (remove (cut string-match "--enable-languages.*" <>) - ,flags))) + `(append (list (string-append "--enable-languages=" + ,(string-join languages ",")) + ;; TODO: Move to 'gcc' in the next rebuild cycle. + (string-append "--with-as=" + (assoc-ref %build-inputs "binutils") + "/bin/as")) + (remove (cut string-match "--enable-languages.*" <>) + ,flags))) ((#:phases phases) `(modify-phases ,phases (add-after 'install 'remove-broken-or-conflicting-files