From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75912 invoked by alias); 6 Feb 2020 03:49:41 -0000 Mailing-List: contact bzip2-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Sender: bzip2-devel-owner@sourceware.org Received: (qmail 75881 invoked by uid 48); 6 Feb 2020 03:49:36 -0000 From: "noloader at gmail dot com" To: bzip2-devel@sourceware.org Subject: [Bug bzip2/25513] New: Update Makefiles; add Makefile for Darwin Date: Wed, 01 Jan 2020 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: bzip2 X-Bugzilla-Component: bzip2 X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: noloader at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2020-q1/txt/msg00003.txt https://sourceware.org/bugzilla/show_bug.cgi?id=3D25513 Bug ID: 25513 Summary: Update Makefiles; add Makefile for Darwin Product: bzip2 Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: bzip2 Assignee: nobody at sourceware dot org Reporter: noloader at gmail dot com CC: bzip2-devel at sourceware dot org Target Milestone: --- Created attachment 12263 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D12263&action=3Ded= it Update Bzip2 makefiles for static archive and shared object. New makefile f= or Darwin dylib As [not] discussed on the mailing list :) There were no comments. On Darwin the install_name libbz2.1.0.dylib was used. ---------- Forwarded message --------- From: Jeffrey Walton Date: Sun, Feb 2, 2020 at 9:39 AM Subject: Makefile for Darwin To: Hi Everyone, Attached is a makefile for Darwin dylibs. The Darwin makefile is a lot like the shared object makefile, so there is not much to explain. (In fact, it was mostly a copy/paste). The Darwin makefile also sets install_names before and after install. The makefile was tested on modern OS X10.9 (x86_64 with clang) and OS X 10.5 (PowerMac with gcc). The regular makefile and the shared object makefile are also included. The makefiles were cleaned up to follow GNU Coding Standards. The interesting sections of the manual are at [1][2][3]. Effectively it means standard variables were used so (1) the makefile behaves like users expect, and (2) it is easier to for user's to override default settings. For example, VPATHs are now supported by using $< and $@ instead of hardcoding filenames. Though the original makefiles were modified, all existing behavior is preserved. Someone running 'make && make install' should see the same behavior as before. The open question (for me) on Darwin is, should the library use the name libbz2.1.0.8.dylib. The name is consistent with Linux and Unix, but I believe OS X typical uses Maj.Min numbers for this case, not Maj.Min.Rev. That is, on OS X, libbz2.1.0.dylib would be more common. If anyone has comments, then they would be appreciated. I'll open a bug report with a pull request after comments. Or, if Julian or Mark prefers, unzip in the bzip2 directory and simply check them in. I don't care about credits or copyright or license. Everything belongs to the project. [1] https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html [2] https://www.gnu.org/prep/standards/html_node/Directory-Variables.html [3] https://www.gnu.org/prep/standards/html_node/Command-Variables.html --=20 You are receiving this mail because: You are on the CC list for the bug.