--- Makefile.PL.orig	2010-09-17 10:14:49.000000000 +0200
+++ Makefile.PL	2013-03-29 14:42:20.000000000 +0100
@@ -25,30 +25,22 @@
 Getopt::Long::GetOptions(
     $opt,
     "help",
-    "prefix=s",
     "verbose",
     ) || die Usage();
 
-if (! exists $opt->{'prefix'}) 
-{
-  print "Missing prefix, use option --prefix\n"; 
-  die Usage();
-}
-
-use vars qw($loadlibs);
-$loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
+# use vars qw($loadlibs);
+# $loadlibs= "-L/usr/local/lib";
 
 WriteMakefile(
     'NAME'          => 'DBD::Cego',
     'VERSION_FROM'  => 'Cego.pm',
     'PREREQ_PM'     => {DBI => 1.03},
     'OBJECT'        => '$(O_FILES)',
-    'INC'           => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include -I' . $opt->{'prefix'} . '/include',
-    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.a " 
-	      . $opt->{'prefix'} . "/lib/liblfcxml.a " 
-	      . $opt->{'prefix'} . "/lib/liblfc.a",
-    "CC" => "g++",
-    "LD" => "g++",
+    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
+    'MYEXTLIB'      => '-lcego -llfcxml -llfc',
+    'CC' => 'g++',
+    'CCFLAGS' => '-O2 -pipe -fno-strict-aliasing -fpermissive',
+    "LD" => "g++ -L/usr/local/lib",
     "XSPROTOARG" => "-noprototypes",
     'OPTIMIZE'      => '-O6 -DNDEBUG=1',
     'XSOPT'             => '-C++',
@@ -59,12 +51,6 @@
 sub Usage {
   print STDERR <<"USAGE";
 Usage: perl $0 [options]
-
-Possible options are:
-
-  --prefix=<prefix path>       Use <prefix> for setting up the appropriate prefix path
-                               to find cego libs and includes
-
 USAGE
   exit 1;
 }
