image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old March 21st, 2006, 10:43 PM
Untitled's Avatar
Untitled
 
Join Date: Apr 2001
Location: Virginia
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
Untitled is on a distinguished road
preventing dynamic linking with malloc lib

I am attempting to run efence on os x using gcc4.0.1. I have compiled it and can link to it dynamically successfuly with the following issue:

I do not know the gcc flag to set to prevent malloc from being dynamically linked to my binary and as a result, while efence appears to run, the original malloc lib functions are used instead so all I get from efence is the copyright tag

Code:
  Electric Fence 2.1 Copyright (C) 1987-1998 Bruce Perens.
__________________
  • Mac mini 1.42Ghz, BT/AP/80GB, BenQ FP931
  • 1100+ xServes
  • iPod 3G(10GB) Dualboots to Linux & iPodOS
  • 80GB external USB/FW HD/DeskJet 3745, Epson Perfection 1200U, Wacom Tablet
Reply With Quote
  #2  
Old March 22nd, 2006, 05:03 PM
tomdkat's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 197
Thanks: 6
Thanked 0 Times in 0 Posts
tomdkat is on a distinguished road
Here are gcc linker options. Perhaps one of those will help.

Peace...
Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
malloc memory objective-c class boyfarrell Software Programming & Web Scripting 4 January 22nd, 2006 08:22 PM
Preventing user from logging in Kristjan Mac OS X System & Mac Software 5 September 18th, 2002 02:33 PM
Silly malloc.h problem R1ck5P Mac OS X System & Mac Software 1 January 14th, 2002 10:06 AM
Preventing booting from a CD bookem Apple News, Rumors & Discussion 2 December 16th, 2001 04:50 AM
preventing second HD from going to sleep themacko Mac OS X System & Mac Software 5 October 2nd, 2001 12:55 PM


All times are GMT -5. The time now is 09:26 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.