From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] mk: fix link with gcc Date: Mon, 02 Jun 2014 09:40:09 +0200 Message-ID: <538C2A59.2060501@6wind.com> References: <1401195316-31149-1-git-send-email-thomas.monjalon@6wind.com> <5385CCE8.6030501@6wind.com> <2352405.jTgRhv3zRV@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: In-Reply-To: <2352405.jTgRhv3zRV@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Thomas, On 05/29/2014 08:48 AM, Thomas Monjalon wrote: > You're right, title should be: > mk: fix 32-bit link with gcc > > And I should add some details in the commit log: > > I didn't see any error with -z muldefs but it isn't documented in gcc m= anual. > So it's safer to explicitly pass it to the linker. > > The variable CPU_LDFLAGS contains "-melf_i386" in 32-bit configurations= . So > building 32-bit shared library raises this error: > gcc: error: unrecognized command line option =E2=80=98-melf_i386=E2=80= =99 > > Olivier, I'll make these changes if you (or Neil) ack the patch. Acked-by: Olivier Matz