From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9767 Path: news.gmane.org!not-for-mail From: Rashad Kanavath Newsgroups: gmane.linux.lib.musl.general Subject: using musl with a c++ library. Date: Tue, 29 Mar 2016 11:02:53 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113964a2ba4d79052f2c4da8 X-Trace: ger.gmane.org 1459242242 5405 80.91.229.3 (29 Mar 2016 09:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 09:04:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9780-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 29 11:04:01 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1akpZB-0004hm-6U for gllmg-musl@m.gmane.org; Tue, 29 Mar 2016 11:04:01 +0200 Original-Received: (qmail 11430 invoked by uid 550); 29 Mar 2016 09:03:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11373 invoked from network); 29 Mar 2016 09:03:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=vEZ2UoFBcKzriiF1gTmvFYqs6aUbdhe7wCiBEOoMvQs=; b=SsTVz7efTDLk/iT1WY0cC7zSqJYn2ce0xNDjfLuxdPhQR+iAaD5NOgBZ5gV75aVId/ uit7MjNIwT6hv56hcCYn2xsvYoZPy/8uDAI+besfCQENHslkR4Mknm+qO5M1pCMdyoTf 4YWwWB09DcnuOl5gf1YA6Ha8K2fs8HN9i6u87JuPUVm73hv79DXqYjRV61dwXDsGorml mX2OHmX7ahQBj0YmKgLa0MvFkGQQXcUQES3kpfM/wLYXYTVVkoOREeVkXurb9juMUWlk op3To00nmO5CIikbrPD2iAiADkYdD+pL3IV8qY65/43tvEKdsmaynGbxz64JZnUxrYsD 94AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vEZ2UoFBcKzriiF1gTmvFYqs6aUbdhe7wCiBEOoMvQs=; b=RdDFhiLAHXtBS3S67cZQmCisTiRpEf0pHa+8NojY1dFbd4pbHpZ/nVNHn9R8K9A4WQ R1/n56Ft8xml0/I2YjxvdTfX2GuW1lbK+kZHMAVnslZjA9wUuFhq8sAIjmal+/5WEQPI 6heofJY0QkoKjin5SY65J8j9dtbd0ayV8kV9QF/PvIa0kjh2cguzFRP1iulRvSkYlaEy /QRfTlGRecTNPEjU/IzfKgsN2Gf/lC7xPPqGz6bRuqfPgP3f5DZ00mWcCEElz88sOtnq mxzA8xhv0oN0apxV1sm3YPcDRpadslwMYLsZzdhsy6H2GKT2DhsODtO5t7fz0NlG2DPJ 5zCg== X-Gm-Message-State: AD7BkJKXbcqWMuAgI7yfTayIUliVLJJkKOBngpHFRtfkktRPHg4HRw2VGBipMUKrx3TD3Frjc6P1utKiowv8Ig== X-Received: by 10.107.2.148 with SMTP id 142mr1394756ioc.128.1459242212673; Tue, 29 Mar 2016 02:03:32 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:9767 Archived-At: --001a113964a2ba4d79052f2c4da8 Content-Type: text/plain; charset=UTF-8 How do I use musl with a c++ library.? Does anybody tried to use g++ using musl? >From musl FAQ, Be aware that, "out of the box", the wrapper only supports C applications, not C++. This is because the C++ libraries and headers are missing from the musl include/library path. The existing libstdc++ is actually compatible with musl in most cases and could be used by copying it into the musl library path, but the C++ header files are usually not compatible. One option may be rebuilding just libstdc++ against musl; however, if C++ support is needed, it's recommended just to build a native toolchain targetting musl. should I rebuild just libstdc++ using musl-gcc wrapper script and use that libstdc++ ?. Also Is it possible to distribute musl with an application package. Currently I have a self-extracting archive which uses an older version of glibc. so it will run on any platform that has a glibc version higher that it was build (2.4). If I use musl and is able to distribute it along with my application package, Then I don't have to rely on anything other than linux kernel version on the target platform. -- Regards, Rashad --001a113964a2ba4d79052f2c4da8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

How do I use m= usl with a c++ library.?=C2=A0 Does anybody tried=C2=A0 to use g++ using mu= sl?

From musl FAQ,

Be aware that, "out of the box&= quot;, the wrapper only supports C applications, not C++. This is because the C++ libraries and headers are missing from the musl include/library path. The existing libstdc++ is actually compatible with musl in most cases and could be used by copying it into the musl library path, but the C++ header files are usually not compatible. One option may be rebuilding just libstdc++ against musl; however, if C++ support is needed, it's recommended just to build a native toolchain targetting musl.

should I rebuild just libstdc++ using musl-gcc wrapper script= and use that libstdc++ ?.


Also Is it possible to distribu= te musl with an application package. Currently I have a self-extracting arc= hive which uses an older version of glibc. so it will run on any platform t= hat has a glibc version higher that it was build (2.4). If I use musl and i= s able to distribute it along with my application package, Then I don't= have to rely on anything other than linux kernel version on the target pla= tform.


--
Regards,<= br>=C2=A0 =C2=A0Rashad
--001a113964a2ba4d79052f2c4da8--