Bug 1635271 - Restore CFLAGS to avoid repeat -fPIC flag when running configure after clobber. r=froydnj

If we don't restore CFLAGS, then after a clobber, there's no configure
cache, and therefore the CFLAGS get tweaked.  But running configure
again, the cache steps in and the extra -fPIC isn't added.  Locally
this means fewer sccache hits (but in automation, all builds at this
time are clobber builds, so there's no impact).

Differential Revision: https://phabricator.services.mozilla.com/D73757
This commit is contained in:
Nick Alexander 2020-05-04 23:13:55 +00:00
Родитель 7e495beecc
Коммит 9c6b68bbb2
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -950,6 +950,7 @@ dnl availability attribute strict, so that compilation fails when the target is
clock_gettime(CLOCK_MONOTONIC, &ts); ],
ac_cv_clock_monotonic=$libs
LIBS="$_SAVE_LIBS"
CFLAGS="$_SAVE_CFLAGS"
break,
ac_cv_clock_monotonic=no)
LIBS="$_SAVE_LIBS"

Просмотреть файл

@ -1206,6 +1206,7 @@ dnl availability attribute strict, so that compilation fails when the target is
clock_gettime(CLOCK_MONOTONIC, &ts); ],
ac_cv_clock_monotonic=$libs
LIBS="$_SAVE_LIBS"
CFLAGS="$_SAVE_CFLAGS"
break,
ac_cv_clock_monotonic=no)
LIBS="$_SAVE_LIBS"