Skip to content

Commit abd67af

Browse files
committed
Swapped the default fallback for python-config to python3-config in this branch
aimed at python3.
1 parent e50ead6 commit abd67af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mig/src/libnss-mig/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DEBUG_CFLAGS=
4242
CC = gcc
4343
INCLUDES=
4444
# NOTE: try python-config first: if 2 and 3 are installed default is there
45-
PYCONF = $(shell which python-config 2> /dev/null || which python2-config 2> /dev/null || which python3-config 2> /dev/null)
45+
PYCONF = $(shell which python-config 2> /dev/null || which python3-config 2> /dev/null || which python2-config 2> /dev/null)
4646
DEFINES=$(MIG_DEFAULTS) \
4747
$(DEBUG_DEFINES)
4848
CFLAGS=${DEBUG_CFLAGS} -Wall -Wpedantic $(shell ${PYCONF} --cflags)

mig/src/libpam-mig/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DEBUG_CFLAGS=
4141

4242
CC = gcc
4343
# NOTE: try python-config first: if 2 and 3 are installed default is there
44-
PYCONF = $(shell which python-config 2> /dev/null || which python2-config 2> /dev/null || which python3-config 2> /dev/null)
44+
PYCONF = $(shell which python-config 2> /dev/null || which python3-config 2> /dev/null || which python2-config 2> /dev/null)
4545
PYLDFLAGS = $(shell ${PYCONF} --ldflags --embed | egrep -v '^Usage: ' || ${PYCONF} --ldflags)
4646
LIBPYTHON = $(shell echo ${PYLDFLAGS} | sed 's/.*-l\(python[^ ]\+\).*/lib\1.so/g')
4747
BUILD_DEFINES = -D'LIBPYTHON="${LIBPYTHON}"'

0 commit comments

Comments
 (0)