mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-10 13:03:41 -04:00
67 lines
3.1 KiB
Plaintext
67 lines
3.1 KiB
Plaintext
$NetBSD: patch-Makefile.pre.in,v 1.2 2016/07/02 15:07:48 adam Exp $
|
|
|
|
Use only one optimisation level; needed for PLIST and setuptools compatibility.
|
|
|
|
--- Makefile.pre.in.orig 2016-06-25 21:38:37.000000000 +0000
|
|
+++ Makefile.pre.in
|
|
@@ -91,7 +91,7 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODI
|
|
# be able to build extension modules using the directories specified in the
|
|
# environment variables
|
|
PY_CPPFLAGS= $(BASECPPFLAGS) -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
|
|
-PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
|
|
+PY_LDFLAGS= -L. $(CONFIGURE_LDFLAGS) $(LDFLAGS)
|
|
NO_AS_NEEDED= @NO_AS_NEEDED@
|
|
LDLAST= @LDLAST@
|
|
SGI_ABI= @SGI_ABI@
|
|
@@ -724,7 +724,7 @@ Python/importlib_external.h: $(srcdir)/L
|
|
$(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h; \
|
|
fi
|
|
|
|
-Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
|
|
+Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib $(LIBRARY_OBJS_OMIT_FROZEN)
|
|
if test "$(cross_compiling)" != "yes"; then \
|
|
./Programs/_freeze_importlib \
|
|
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h; \
|
|
@@ -882,7 +882,7 @@ Objects/setobject.o: $(srcdir)/Objects/s
|
|
$(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
|
|
$(OPCODETARGETGEN) $(OPCODETARGETS_H)
|
|
|
|
-Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
|
|
+#Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
|
|
|
|
Python/frozen.o: Python/importlib.h Python/importlib_external.h
|
|
|
|
@@ -1122,7 +1122,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK
|
|
if test -n "$(PY3LIBRARY)"; then \
|
|
$(INSTALL_SHARED) $(PY3LIBRARY) $(DESTDIR)$(LIBDIR)/$(PY3LIBRARY); \
|
|
fi; \
|
|
- else true; \
|
|
+ elif test -f $(INSTSONAME); then \
|
|
+ $(INSTALL_SHARED) $(INSTSONAME) $(DESTDIR)$(LIBDIR); \
|
|
fi
|
|
if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
|
|
rm -f $(DESTDIR)$(BINDIR)python$(VERSION)-32$(EXE); \
|
|
@@ -1312,11 +1313,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
|
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
|
|
$(DESTDIR)$(LIBDEST)
|
|
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
|
- $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
|
|
- -d $(LIBDEST) -f \
|
|
- -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
|
|
- $(DESTDIR)$(LIBDEST)
|
|
- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
|
$(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
|
|
-d $(LIBDEST)/site-packages -f \
|
|
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
|
@@ -1325,10 +1321,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
|
-d $(LIBDEST)/site-packages -f \
|
|
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
|
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
|
- $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
|
|
- -d $(LIBDEST)/site-packages -f \
|
|
- -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
|
- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
|
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
|
|
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
|
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
|