[Novalug] make, etc.

Nino Pereira pereira at speakeasy.net
Sun Jul 13 18:04:51 EDT 2008


Hi All,

I'm trying to install a program. This is done the standard
way, with 'make' and a Makefile. Since I don't really know how
this works I can't figure out how to do something really simple,
like 'point to a library that seems to be missing'.

The Makefile has a section, as follows (the comments are mine):

# Original series of commands.
#           LIBS = -lX11 -lm -lreadline -lncurses
#     MOTIF_LIBS = -lXm -lMrm -lXt -lXext -lXp
#   STATIC_MOTIF = -lXm -lMrm -lXpm -lXt -lSM -lICE -lXext -lXp

# Somehow, these commands don't give you access to standard files,
# such as stdio.h, etc. These are in glibc: 'find / -name 'stdio.h'
# gives /src/gnu/glibc-2.7.libio/stdio.h, and others (in /src/gnu...).

My question is: how do I add glibc-2.7 to the libraries that 'make'
passes on to the compilation? What should I add to these lines?

            LIBS = -lX11 -lm -lreadline -lncurses
      MOTIF_LIBS = -lXm -lMrm -lXt -lXext -lXp
    STATIC_MOTIF = -lXm -lMrm -lXpm -lXt -lSM -lICE -lXext -lXp

Any help is most welcome.

Thank you,

Nino



More information about the Novalug mailing list