Paul D. Smith writes:

> Seems like any decent compiler would omit this code!  Since Linux is
> using GCC, I would double-expect that.  Maybe it only happens when you
> build with optimization on?

No compiler is required to omit "if (0)" code, and gcc indeed doesn't
omit it if -O is not given. Therefore compiling the make-3.79.1 code
without optimization but without -lutil will result in a link error.
Since looking into the optimization flags in order to know whether to
link in libutil.so is too tricky, it is preferrable to determine a
priori whether libutil.so will be needed.

Bruno

Reply via email to