bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH v2 hurd] rumpusbdisk: Add USB mass storage translator


From: Samuel Thibault
Subject: Re: [PATCH v2 hurd] rumpusbdisk: Add USB mass storage translator
Date: Mon, 3 Jul 2023 01:01:41 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Damien Zammit, le mer. 28 juin 2023 10:52:10 +0000, a ecrit:
> diff --git a/rumpdisk/Makefile b/rumpdisk/Makefile
> index b59aaf9a..ab763570 100644
> --- a/rumpdisk/Makefile
> +++ b/rumpdisk/Makefile
> @@ -15,7 +15,9 @@

Nice, thanks for the factorization!

>  HURDLIBS = machdev ports trivfs shouldbeinlibc iohelp ihash fshelp
> -LDLIBS += -lpthread -lpciaccess -ldl
> -LDLIBS += -Wl,--whole-archive $(RUMPLIBS:%=-l%_pic) -Wl,--no-whole-archive 
> $(RUMPEXTRA:%=-l%_pic)
> +
> +rumpdisk-OBJS = $(SRCS:.c=.disk.o)
> +rumpdisk-LDLIBS = -lpthread -lpciaccess -ldl -Wl,--whole-archive 
> $(RUMPLIBS:%=-l%_pic) $(RUMPSATA:%=-l%_pic) -Wl,--no-whole-archive 
> $(RUMPEXTRA:%=-l%_pic)

Better factorize the common LDLIBS parts.

> +extralibs = \
> +     ../libmachdev/libmachdev.a \
> +     ../libports/libports.a \
> +     ../libtrivfs/libtrivfs.a \
> +     ../libshouldbeinlibc/libshouldbeinlibc.a \
> +     ../libiohelp/libiohelp.a \
> +     ../libihash/libihash.a \
> +     ../libfshelp/libfshelp.a

This is linking everything statically. Can't we just pass -lmachdev
-lports etc.? (actually, $(HURDLIBS:%=-l%)

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]