Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-24-2011, 09:28 AM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

These commands are basically a pkg-config equivalent for perl. If you just type these commands by themselves in a terminal, you should get the appropriate compiler and linker options for embedding perl in that environment.

perl -MExtUtils::Embed -e ccopts
perl -MExtUtils::Embed -e ldopts

So what PERL_FLAGS=$(shell perl -MExtUtils::Embed -e ccopts) is actually doing is setting the PERL_FLAGS variable to the output of the command 'perl -MExtUtils::Embed -e ccopts'.

On my system (10.04 x64) the output of those commands is as follows:

-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE

And

-Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt

Additionally, the perl vars should be getting passed to the final COPTS and LINKOPTS vars.

COPTS=$(WFLAGS) ... $(DFLAGS) $(MYSQL_FLAGS) $(PERL_FLAGS)
LINKOPTS=$(COPTS) ... $(MYSQL_LIB) $(PERL_LIB)

I'm in 10.04 x64 but I wouldn't think that the environment would be so drastically different in 10.10.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:26 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3