Skip to content

Commit

Permalink
Merge pull request #32 from dmulder/fix_ccpflags_overwrite
Browse files Browse the repository at this point in the history
Don't overwrite CPPFLAGS/LDFLAGS/LIBADD
  • Loading branch information
dmulder committed Feb 14, 2020
2 parents 8dda787 + 25c8e50 commit d526734
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions package/yast2-python-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 10 23:59:20 UTC 2020 - dmulder@suse.com

- Don't overwrite CPPFLAGS/LDFLAGS/LIBADD during build; (bsc#1163310);
- 4.1.2

-------------------------------------------------------------------
Thu Jan 9 09:45:58 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-python-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%bcond_with python2
%endif
Name: yast2-python-bindings
Version: 4.1.1
Version: 4.1.2
Release: 0
Summary: Python bindings for the YaST platform
License: GPL-2.0-only
Expand Down
20 changes: 10 additions & 10 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BUILT_SOURCES = ycp.py yast.py
ycp.py yast-core_wrap.cxx: yast-core.i ytypes.i ycp.i $(libpy2UI) YCPMap.h y2log.i
$(SWIG) $(AX_SWIG_PYTHON_OPT) -c++ -I/usr/include/YaST2 -o $@ $<
$(SWIG) $(AX_SWIG_PYTHON_OPT) -c++ -I/usr/include/YaST2 $(CPPFLAGS) -o $@ $<

yast.py: yast.py.in
sed -e 's;[@]DATADIR[@];$(datadir);g' < $(srcdir)/yast.py.in > $(srcdir)/yast.py
Expand All @@ -25,22 +25,22 @@ uninstall-hook:
(cd $(DESTDIR)/${pyexecdir}; rm -f _ycp.so || echo)

SOURCES = Y2PythonComponent.cc Y2CCPython.cc YPython.cc YPythonNamespace.cc YCPDeclarations.cc yast.cpp yast-core_wrap.cxx Y2PythonClientComponent.cc Y2CCPythonClient.cc YPythonCode.cc PythonLogger.cc
LIBADD = -L$(py2langdir) -lpy2UI -lpy2wfm
LDFLAGS = -module ${PYTHON_LDFLAGS} -Wl,-rpath=$(pyexecdir)
CPPFLAGS = -std=c++11 -I/usr/include/YaST2 ${PYTHON_CPPFLAGS} -Wno-terminate -Wno-format-security -Wno-format-nonliteral
LIB_LIBADD = -L$(py2langdir) -lpy2UI -lpy2wfm
LIB_LDFLAGS = -module ${PYTHON_LDFLAGS} -Wl,-rpath=$(pyexecdir)
LIB_CPPFLAGS = -std=c++11 -I/usr/include/YaST2 ${PYTHON_CPPFLAGS} -Wno-terminate -Wno-format-security -Wno-format-nonliteral

if HAVE_PY3
py2lang_LTLIBRARIES = libpy2lang_python3.la
libpy2lang_python3_la_SOURCES = $(SOURCES)
libpy2lang_python3_la_LIBADD = $(LIBADD)
libpy2lang_python3_la_LDFLAGS = $(LDFLAGS)
libpy2lang_python3_la_CPPFLAGS = $(CPPFLAGS)
libpy2lang_python3_la_LIBADD = $(LIB_LIBADD)
libpy2lang_python3_la_LDFLAGS = $(LIB_LDFLAGS)
libpy2lang_python3_la_CPPFLAGS = $(LIB_CPPFLAGS)
else
py2lang_LTLIBRARIES = libpy2lang_python.la
libpy2lang_python_la_SOURCES = $(SOURCES)
libpy2lang_python_la_LIBADD = $(LIBADD)
libpy2lang_python_la_LDFLAGS = $(LDFLAGS)
libpy2lang_python_la_CPPFLAGS = $(CPPFLAGS)
libpy2lang_python_la_LIBADD = $(LIB_LIBADD)
libpy2lang_python_la_LDFLAGS = $(LIB_LDFLAGS)
libpy2lang_python_la_CPPFLAGS = $(LIB_CPPFLAGS)
endif

AM_CXXFLAGS = -DY2LOG=\"Python\"
Expand Down

0 comments on commit d526734

Please sign in to comment.