[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] Shorter object file names under subdir-objects
From: |
Thomas Martitz |
Subject: |
[PATCH v2] Shorter object file names under subdir-objects |
Date: |
Fri, 12 May 2017 07:11:59 +0200 |
Hello,
here's the updated patch. Changes since v1:
- The test that checks for exact object file names was replaced by
another one that tests if object files clash due to truncation of the name
- When there were two programs or libraries with the same base name (but
in different dirs), then the wrong object was linked into one of the
programs/libs.
Note: There is still one extreme edge case which is not handled yet. You
can apparently name a program libfoo_la. If there is also library
libfoo.la generated in another dir, then the objects will clash again.
My fix above only checks for clashes within programs (and within
libraries). This is due to the code structure (libraries are written out
before programs parsed at all). I wanted to get opinions on how to
tackle this before going a wrong route. Maybe change the code so that
all programs and libs are parsed first, checked for clashes second and
then written out?
Best regards
0001-Shorter-object-file-names-under-subdir-objects.patch
Description: Text Data
- [PATCH v2] Shorter object file names under subdir-objects,
Thomas Martitz <=