[PATCH] 2.5.63: aicasm Makefile

Bob Tracy (rct@gherkin.frus.com)
Tue, 25 Feb 2003 06:51:47 -0600 (CST)


--ELM741935458-11570-0_
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII

The Makefile for aicasm has been broken since 2.5.48. The order in
which objects are specified on the linker command line *is* significant,
and if "-ldb" is made part of AICASM_CFLAGS rather than appearing after
the "-o $(PROG)", I get an undefined symbol error (__db185_open).

The attached patch is against 2.5.54-2.5.63 inclusive. Original
posting 1 December 2002. Patch included in 2.5.62-ac1 (Thanks, Alan!),
but didn't make it into 2.5.63.

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------

--ELM741935458-11570-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename=patch63_aicasm

--- linux/drivers/scsi/aic7xxx/aicasm/Makefile~ 2002-12-24 07:09:29.000000000 -0600 +++ linux/drivers/scsi/aic7xxx/aicasm/Makefile 2003-01-07 16:47:01.000000000 -0600 @@ -10,9 +10,10 @@ GENSRCS= $(YSRCS:.y=.c) $(LSRCS:.l=.c) SRCS= ${CSRCS} ${GENSRCS} +LIBS= -ldb CLEANFILES= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) # Override default kernel CFLAGS. This is a userland app. -AICASM_CFLAGS:= -I/usr/include -I. -ldb +AICASM_CFLAGS:= -I/usr/include -I. YFLAGS= -d NOMAN= noman @@ -30,7 +31,7 @@ endif $(PROG): ${GENHDRS} $(SRCS) - $(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) + $(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) $(LIBS) aicdb.h: @if [ -e "/usr/include/db3/db_185.h" ]; then \

--ELM741935458-11570-0_-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/