[llvm-dev] how to remove reference of DESTDIR path from installed binaries ?

Jonathan MERCIER via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 24 02:30:11 PDT 2019


Dear,

Once I built and installed llvm,clang,clang++ and others to my PREFIX 
directory. I found that generated binaries contains reference to the 
DESTDIR directory

Below an example with ${PREFIX}/lib/libclangAnalysis.a any help/idea to 
remove those unwanted references to DESTDIR path are welcome.


Thanks


$ hexdump -C ${PREFIX}/lib/libclangAnalysis.a

    8379 00021e60  00 00 00 00 00 00 63 6c  61 6e 67 20 76 65 72 73  
|......clang vers|
    8380 00021e70  69 6f 6e 20 38 2e 30 2e  30 20 28 74 61 67 73 2f  
|ion 8.0.0 (tags/|
    8381 00021e80  52 45 4c 45 41 53 45 5f  38 30 30 2f 66 69 6e 61  
|RELEASE_800/fina|
    8382 00021e90  6c 29 20 2f 74 6d 70 2f  6a 6d 65 72 63 69 65 72  |l) 
/tmp/jmercier|
    8383 00021ea0  2d 72 65 66 6f 72 67 65  2f 42 55 49 4c 44 2f 6c  
|-reforge/BUILD/l|
    8384 00021eb0  6c 76 6d 2d 38 2e 30 2e  30 2f 74 6d 70 5f 72 6f  
|lvm-8.0.0/tmp_ro|
    8385 00021ec0  6f 74 2f 65 6e 76 2f 69  67 2f 73 6f 66 74 2f 69  
|ot/env/ig/soft/i|
    8386 00021ed0  67 2f 6c 6c 76 6d 2d 38  2e 30 2e 30 2f 65 6c 37  
|g/llvm-8.0.0/el7|
    8387 00021ee0  2d 78 38 36 5f 36 34 2d  67 65 6e 65 72 69 63 2f  
|-x86_64-generic/|
    8388 00021ef0  62 69 6e 2f 63 6c 61 6e  67 2d 38 20 2d 2d 64 72  
|bin/clang-8 --dr|
    8389 00021f00  69 76 65 72 2d 6d 6f 64  65 3d 67 2b 2b 20 2d 44  
|iver-mode=g++ -D|
    8390 00021f10  20 47 54 45 53 54 5f 48  41 53 5f 52 54 54 49 3d  | 
GTEST_HAS_RTTI=|
    8391 00021f20  30 20 2d 44 20 5f 47 4e  55 5f 53 4f 55 52 43 45  |0 
-D _GNU_SOURCE|
    8392 00021f30  20 2d 44 20 5f 5f 53 54  44 43 5f 43 4f 4e 53 54  | 
-D __STDC_CONST|
    8393 00021f40  41 4e 54 5f 4d 41 43 52  4f 53 20 2d 44 20 5f 5f  
|ANT_MACROS -D __|
    8394 00021f50  53 54 44 43 5f 46 4f 52  4d 41 54 5f 4d 41 43 52  
|STDC_FORMAT_MACR|
    8395 00021f60  4f 53 20 2d 44 20 5f 5f  53 54 44 43 5f 4c 49 4d  |OS 
-D __STDC_LIM|
    8396 00021f70  49 54 5f 4d 41 43 52 4f  53 20 2d 49 20 74 6f 6f  
|IT_MACROS -I too|
    8397 00021f80  6c 73 2f 63 6c 61 6e 67  2f 6c 69 62 2f 41 6e 61  
|ls/clang/lib/Ana|
    8398 00021f90  6c 79 73 69 73 20 2d 49  20 2f 74 6d 70 2f 6a 6d  
|lysis -I /tmp/jm|
    8399 00021fa0  65 72 63 69 65 72 2d 72  65 66 6f 72 67 65 2f 42  
|ercier-reforge/B|
    8400 00021fb0  55 49 4c 44 2f 6c 6c 76  6d 2d 38 2e 30 2e 30 2f  
|UILD/llvm-8.0.0/|
    8401 00021fc0  63 6c 61 6e 67 2f 6c 69  62 2f 41 6e 61 6c 79 73  
|clang/lib/Analys|
    8402 00021fd0  69 73 20 2d 49 20 2f 74  6d 70 2f 6a 6d 65 72 63  |is 
-I /tmp/jmerc|
    8403 00021fe0  69 65 72 2d 72 65 66 6f  72 67 65 2f 42 55 49 4c  
|ier-reforge/BUIL|
    8404 00021ff0  44 2f 6c 6c 76 6d 2d 38  2e 30 2e 30 2f 63 6c 61  
|D/llvm-8.0.0/cla|
    8405 00022000  6e 67 2f 69 6e 63 6c 75  64 65 20 2d 49 20 74 6f  
|ng/include -I to|
    8406 00022010  6f 6c 73 2f 63 6c 61 6e  67 2f 69 6e 63 6c 75 64  
|ols/clang/includ|
    8407 00022020  65 20 2d 49 20 2f 75 73  72 2f 69 6e 63 6c 75 64  |e 
-I /usr/includ|
    8408 00022030  65 2f 6c 69 62 78 6d 6c  32 20 2d 49 20 69 6e 63  
|e/libxml2 -I inc|
    8409 00022040  6c 75 64 65 20 2d 49 20  2f 74 6d 70 2f 6a 6d 65  
|lude -I /tmp/jme|
    8410 00022050  72 63 69 65 72 2d 72 65  66 6f 72 67 65 2f 42 55  
|rcier-reforge/BU|
    8411 00022060  49 4c 44 2f 6c 6c 76 6d  2d 38 2e 30 2e 30 2f 6c  
|ILD/llvm-8.0.0/l|
    8412 00022070  6c 76 6d 2f 69 6e 63 6c  75 64 65 20 2d 4f 33 20  
|lvm/include

-- 

Jonathan MERCIER
Centre National de Recherche en Génomique Humaine (CNRGH)

Researcher computational biology

PhD, Jonathan MERCIER

Bioinformatics (LBI)

2, rue Gaston Crémieux

91057 Evry Cedex

Tel :(33) 1 60 87 83 44

Email :jonathan.mercier at cng.fr <mailto:jonathan.mercier at cng.fr>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190424/addd101a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pnfoceokllhioekb.
Type: image/jpg
Size: 5638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190424/addd101a/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mancloagjmafjhab.
Type: image/jpg
Size: 17553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190424/addd101a/attachment-0003.jpg>


More information about the llvm-dev mailing list