Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 206] New - CPPFLAGS, CXXFLAGS and LDFLAGS not respected

pysvn
Discussion topic

Back to topic list

[Issue 206] New - CPPFLAGS, CXXFLAGS and LDFLAGS not respected

Author semenov
Full name Ilya Semenov
Date 2016-05-12 20:42:58 PDT
Message http://pysvn.tigris.​org/issues/show_bug.​cgi?id=206
                 Issue #|206
                 Summary|CPPFLAGS, CXXFLAGS and LDFLAGS not respected
               Component|pysvn
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|extension
             Assigned to|barryscott
             Reported by|semenov






------- Additional comments from semenov at tigris dot org Thu May 12 20:42:58 -0700 2016 -------
python setup.py configure and Makefile do not respect standard CPPFLAGS, CXXFLAGS and LDFLAGS
environment variables.

In particular, this prevents from compiling and linking against a specific version of OpenSSL (as Makefile refers to
hardcoded /usr/lib). This has other side affects as well, for example being unable to control the verbosity of
warnings in the output.

The proposed patch adjusts Makefile to have $(CPPFLAGS), $(CXXFLAGS) and $(LDFLAGS) as the initial options
for the corresponding compiler/linker calls.

Without patch:

$ python setup.py configure && LDFLAGS="-L/usr/loca​l/opt/openssl/lib" make && otool -L pysvn/_pysvn_2_7.so |
grep ssl
....
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)

With patch:

$ python setup.py configure && LDFLAGS="-L/usr/loca​l/opt/openssl/lib" make && otool -L pysvn/_pysvn_2_7.so |
grep ssl
....
    /usr/local/opt/opens​sl/lib/libssl.1.0.0.​dylib (compatibility version 1.0.0, current version 1.0.0)

« Previous message in topic | 1 of 6 | Next message in topic »

Messages

Show all messages in topic

[Issue 206] New - CPPFLAGS, CXXFLAGS and LDFLAGS not respected semenov Ilya Semenov 2016-05-12 20:42:58 PDT
     [Issue 206] CPPFLAGS, CXXFLAGS and LDFLAGS not respected semenov Ilya Semenov 2016-05-12 20:45:17 PDT
     [Issue 206] CPPFLAGS, CXXFLAGS and LDFLAGS not respected barryscott Barry Scott 2016-05-13 05:28:00 PDT
     [Issue 206] CPPFLAGS, CXXFLAGS and LDFLAGS not respected semenov Ilya Semenov 2016-05-14 01:47:55 PDT
     [Issue 206] CPPFLAGS, CXXFLAGS and LDFLAGS not respected barryscott Barry Scott 2016-05-14 01:59:33 PDT
     [Issue 206] CPPFLAGS, CXXFLAGS and LDFLAGS not respected semenov Ilya Semenov 2016-05-14 02:01:00 PDT
Messages per page: