Fix for 64 bit compatibility.
authorJunfeng Dong <junfeng.dong@intel.com>
Mon, 25 Mar 2013 12:04:26 +0000 (20:04 +0800)
committerlifang <fangx.li@intel.com>
Wed, 3 Apr 2013 02:59:18 +0000 (10:59 +0800)
- Fix hardcoding path.
- Use %configure to set default paths.

Change-Id: I701761576fc9c951d1657b9669abdc9cde895cec

configure.ac
packaging/libmm-player.spec

index 06898cf..75c0956 100755 (executable)
@@ -5,7 +5,7 @@ AC_PREREQ(2.61)
 AC_INIT([libmm-player],[0.0.1])
 AC_CONFIG_SRCDIR([src/mm_player_priv.c])
 AC_CONFIG_HEADER([config.h])
-AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AM_INIT_AUTOMAKE([-Wall foreign])
 
 # Checks for programs.
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
index 6805ba4..434662c 100644 (file)
@@ -39,9 +39,9 @@ Multimedia Framework Player Library (DEV).
 ./autogen.sh
 
 CFLAGS+=" -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "; export CFLAGS
-LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
+LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
 
-CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --prefix=%{_prefix} --disable-static
+%configure --disable-static
 
 make -j1