From 75198e5005da91ccac9f2aadd5e6e4e01b59dbb9 Mon Sep 17 00:00:00 2001 From: Yu Qing Date: Sat, 10 Oct 2015 11:37:11 +0800 Subject: [PATCH] install to /usr/lib/ anyway --- php-fastcommon/test.php | 3 ++- src/Makefile.in | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/php-fastcommon/test.php b/php-fastcommon/test.php index ec8f023..6e2dae3 100644 --- a/php-fastcommon/test.php +++ b/php-fastcommon/test.php @@ -12,5 +12,6 @@ echo 'first local ip: ' . fastcommon_get_first_local_ip() . "\n"; $next_ip = null; while (($next_ip=fastcommon_get_next_local_ip($next_ip))) { - echo "next local ip: $next_ip\n"; + $is_private_ip = fastcommon_is_private_ip($next_ip); + echo "local ip: $next_ip, private: $is_private_ip\n"; } diff --git a/src/Makefile.in b/src/Makefile.in index f002ed0..a071817 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -49,6 +49,7 @@ libfastcommon.a: $(FAST_STATIC_OBJS) install: mkdir -p $(DESTDIR)/usr/$(LIB_VERSION) install -m 755 $(SHARED_LIBS) $(DESTDIR)/usr/$(LIB_VERSION) + install -m 755 $(SHARED_LIBS) $(DESTDIR)/usr/lib mkdir -p $(DESTDIR)/usr/include/fastcommon install -m 644 $(HEADER_FILES) $(DESTDIR)/usr/include/fastcommon clean: