Skip to content

Commit

Permalink
Fix sdk name for OSX < 10.9 and most likely > 10.9
Browse files Browse the repository at this point in the history
Add dependency for freeradius-devel to jlibtool
  • Loading branch information
arr2036 committed Oct 24, 2013
1 parent 386313a commit 14195da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ fi
if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
$as_echo "$as_me: determining OSX SDK path" >&6;}
osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion) Path)
osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
$as_echo "$osx_sdk_path" >&6; }
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ case "$host" in

if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
AC_MSG_NOTICE([determining OSX SDK path])
osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion) Path)
osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[[0-9]]+\.[[0-9]]+') Path)
AC_MSG_RESULT([$osx_sdk_path])

dnl #
Expand Down
6 changes: 3 additions & 3 deletions scripts/libtool.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ifeq "${LIBTOOL}" "JLIBTOOL"
# Note that we need to use a compilation rule that does NOT
# include referencing ${LIBTOOL}, as we don't have a jlibtool
# binary!
${JLIBTOOL}: ${top_makedir}/jlibtool.c
${JLIBTOOL}: ${top_makedir}/jlibtool.c | src/freeradius-devel
@mkdir -p $(dir $@)
@echo CC jlibtool.c
@${CC} $< -o $@ ${CFLAGS}
Expand Down Expand Up @@ -147,12 +147,12 @@ ifeq "${bm_shared_libs}" "yes"
RELINK := local/

# RPATH : flags use to build executables that are installed,
# with no dependency on the source.
# with no dependency on the source.
# RELINL : flags use to build executables that can be run
# from the build directory / source tree.
RPATH_FLAGS := -rpath ${libdir}
RELINK_FLAGS := -rpath $(abspath ${BUILD_DIR})/lib/${RELINK}/.libs

RELINK_FLAGS_MIN := -rpath ${libdir}

ifneq "${bm_static_libs}" "yes"
Expand Down

0 comments on commit 14195da

Please sign in to comment.