From: Ian Jackson Subject: Re: [PATCH] add SONAME to libblktapctl.so Date: Wed, 11 Aug 2010 14:37:03 +0100 Message-ID: <19554.42879.224718.693010@mariner.uk.xensource.com> References: <20100728152348.GA6308@aepfle.de> <20100801094935.GA5265@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100801094935.GA5265@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] add SONAME to libblktapctl.so"): > Add an SONAME to libblktapctl.so. Install static library as data to > avoid executable permissions in the .a file. Thanks. I have a few comments: > -libblktapctl.so: $(CTL_PICS) > - $(CC) $(CFLAGS) -fPIC -shared -rdynamic $^ -o $@ > +$(LIB_SHARED): $(CTL_PICS) > + $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -Wl,$(SONAME_LDFLAG) -Wl,$(LIBSONAME) $(SHLIB_LDFLAGS) -rdynamic $^ -o $@ I'm not sure I understand why -fPIC appears here as a literal, rather than being included via some more general make variable. And does it have any effect on the shared library creation link line anyway ? Other places that make shared libraries don't have -fPIC there. Likewise they don't say -rdynamic. I appreciate that you're not doing anything here that wasn't in the makefiles before. So really I'm just asking if you or anyone else knows anything about the reasons for this. Thanks, Ian.