Re: ANNOUNCE - mdadm 0.7.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




	Hello Neil ,  Thanks to Mike Black I got my sh?? straight .
	Below is a patch to that will allow people to
	add :  -static  to:  LDFLAGS
	add :  -s       to:  STRIP
	at the top of the Makefile .  Massage to your tastes ;-) .
		Hth ,  JimL

--- Makefile.ORIG	Wed Mar 13 00:51:07 2002
+++ Makefile	Sun Mar 17 12:45:18 2002
@@ -30,6 +30,9 @@
 CC = gcc
 CFLAGS = -Wall,error,strict-prototypes -ggdb

+LDFLAGS = -static
+STRIP = -s
+
 INSTALL = /usr/bin/install
 DESTDIR = /.
 BINDIR  = /sbin
@@ -40,7 +43,7 @@
 all : mdadm mdadm.man md.man mdadm.conf.man

 mdadm : $(OBJS)
-	$(CC) -o mdadm $^
+	$(CC) $(LDFLAGS) -o mdadm $^

 mdadm.man : mdadm.8
 	nroff -man mdadm.8 > mdadm.man
@@ -54,7 +57,7 @@
 $(OBJS) : mdadm.h

 install : mdadm mdadm.8
-	$(INSTALL) -m 755 mdadm $(DESTDIR)/$(BINDIR)
+	$(INSTALL) $(STRIP) -m 755 mdadm $(DESTDIR)/$(BINDIR)
 	$(INSTALL) -m 644 mdadm.8 $(DESTDIR)/$(MANDIR)

 clean :



On Sun, 17 Mar 2002, Mr. James W. Laferriere wrote:
> 	Hello Neil ,  Another item of interest (at for me) .
> 	How do I go about compiling mdadm as a static binary ?
> 	I -really- need it to complete an install .  Tia ,  JimL
> On Sat, 16 Mar 2002, Neil Brown wrote:
> > On Friday March 15, babydr@baby-dragons.com wrote:
> > > 	Hello Neil ,  What happened to the URL: for your sources ?
> > > 	Is the below correct ?  Tia ,  JimL
> > > On Fri, 15 Mar 2002, Neil Brown wrote:
> > > > mdadm 0.7.1 is now available at
> > > >   http://www.cse.unsw.edu.au/~neilb/sources/mdadm/
> > Sorry, should be:
> >    http://www.cse.unsw.edu.au/~neilb/source/mdadm/
> > (I try to avoid plural directory names, but my fingers forgot that as
> > I was typing the URL).
> > NeilBrown
>
>        +------------------------------------------------------------------+
>        | James   W.   Laferriere | System    Techniques | Give me VMS     |
>        | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
>        | babydr@baby-dragons.com | Coudersport PA 16915 |   only  on  AXP |
>        +------------------------------------------------------------------+
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

       +------------------------------------------------------------------+
       | James   W.   Laferriere | System    Techniques | Give me VMS     |
       | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
       | babydr@baby-dragons.com | Coudersport PA 16915 |   only  on  AXP |
       +------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux