libtool: Fix documentation for demo compile mode commands
commit98ed9b7b51fba00e36b0f8a76cf7a5a2e5c5105e
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Mar 2024 15:48:51 +0000 (20 17:48 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Mar 2024 15:48:51 +0000 (20 17:48 +0200)
tree9640afebf8353f1c3a0d88be5becd54088bc6079
parent498bad82f6a656ddc52b376cdab8c471b639d500
libtool: Fix documentation for demo compile mode commands

The demo compile mode commands in Chapter 3 fail to compile since
the source files include a header file that is not in the header search
list. The config.h file is in the local folder. Before this fix, the
compile mode commands would return errors like below:

main.c:1:10: fatal error: config.h: No such file or directory
    1 | #include <config.h>
      |          ^~~~~~~~~~
compilation terminated.

The '-I' option has been added to the gcc commands to specify that the
local folder should be searched for header files.

* doc/libtool.texi: Add option to demo compile mode commands
doc/libtool.texi