[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generated Makefile fails to build
From: |
Bob Friesenhahn |
Subject: |
Re: Generated Makefile fails to build |
Date: |
Fri, 19 Sep 2014 18:16:39 -0500 (CDT) |
User-agent: |
Alpine 2.01 (GSO 1266 2009-07-14) |
On Sat, 20 Sep 2014, Robert Parker wrote:
Here is my Makefile.am
AM_CFLAGS=-Wall -Wextra
bin_PROGRAMS=pwordsaver
pwordsaver_SOURCES=pwordsaver.c fileutil.c fileutil.h
AM_LDFLAGS = -lmhash
A library is not a linker flag so it does not belong in LDFLAGS.
Look into using a 'LIBADD' type option instead.
This problem seems to be a 'feature' of gcc because the same error happens
when compiling by manual commands.
What must I do please?
LIBS are not flags. Take care to specify libraries where libraries
are supposed to go.
Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/