cvs commit: LFS/lfscmd Makefile

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Sat May 10 10:41:03 PDT 2003


timothy     03/05/10 13:41:03

  Modified:    lfscmd   Makefile
  Log:
  Silly of gcc to require a certain arg order in order to produce static binaries.
  
  Revision  Changes    Path
  1.4       +3 -2      LFS/lfscmd/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/LFS/lfscmd/Makefile,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Makefile	9 May 2003 10:42:39 -0000	1.3
  +++ Makefile	10 May 2003 17:41:03 -0000	1.4
  @@ -1,7 +1,8 @@
   CC=gcc
   CFLAGS=-I/usr/include/libxml2 -W -Wall -Os
  -LDFLAGS=-lxml2 -lm -s
  +LIBS=-lxml2 -lz -lm -s
   PREFIX=/usr
  +LDFLAGS=
   
   OBJS= env.o \
         file.o \
  @@ -13,7 +14,7 @@
   all: lfscmd
   
   lfscmd: env.o file.o help.o lfscmd.o main.o string.o
  -	$(CC) env.o file.o help.o lfscmd.o main.o string.o $(CFLAGS) $(LDFLAGS) -o lfscmd
  +	$(CC) env.o file.o help.o lfscmd.o main.o string.o $(LDFLAGS) -o lfscmd $(CFLAGS) $(LIBS)
   
   install: lfscmd
   	if ( test ! -d $(PREFIX)/bin ); then mkdir -p $(PREFIX)/bin; fi
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list