<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br></div><div>OPT_CFLAGS is also used in externals/Makefile which then calls externals/miXed/cyclone/Makefile.  I am pretty sure that since package/linux_make/Makefile calls externals/Makefile which calls externals/miXed/cyclone/Makefile, the OPT_CFLAGS are passed to each Makefile as part of the environment.  I could be wrong though...  if so, then this line in externals/Makefile:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cd $(externals_src)/miXed/cyclone &amp;&amp; $(MAKE) OUT_DIR=$(CYCLONE_OUT_DIR)</div><div><br></div><div>Could be changed to something like this:</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cd $(externals_src)/miXed/cyclone &amp;&amp; $(MAKE) OUT_DIR=$(CYCLONE_OUT_DIR) \</div><div>                  OPT_CFLAGS=$(OPT_CFLAGS)</div><div><br></div></div></div><div>I am ok with changing other places where its needed.  But the miXed build system is so complicated, I'd rather not mess with it at all.</div><div><br></div><div>.hc</div><br><div><div>On Jul 21, 2008, at 3:44 PM, Sergi Lario wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Ok, sounds good.<br><br>OPT_CFLAGS appears only in the makefile of this externals: jackx and miXed<br><br>At the moment jackx makefile has -fPIC flag, so that we have two options<br><br>* to add -fPIC to OPT_CFLAGS in linux_make/Makefile and remove the jackx one if is needed (duplicate)<br> * to add -fPIC to miXed Makefile.common directly<br><br>Sergi.<br><pre><br></pre><br><br><div class="gmail_quote">2008/7/20 Hans-Christoph Steiner &lt;<a href="mailto:hans@eds.org">hans@eds.org</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style=""> <div><br></div><div>What if you added -fPIC to OPT_CFLAGS in 'packages/linux_make/Makefile'?  The miXed build system will get the flags from that OPT_CFLAGS.  Plus I think that setting it in OPT_CFLAGS would then set it everywhere.</div> <div><br></div><div>.hc</div><div><br></div><br><div><div><div></div><div class="Wj3C7c"><div>On Jul 12, 2008, at 10:02 PM, Sergi Lario wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="Wj3C7c"> <pre>Hi list,<br><br>I added the -fPIC cflag in all makefiles I get errors compiling on a 64 bits machine ( <a href="http://lists.puredata.info/pipermail/pd-list/2008-07/063706.html" target="_blank">http://lists.puredata.info/pipermail/pd-list/2008-07/063706.html</a> ) with coders of these externals agree.<br>

<br>But not with the miXed makefile.<br><br><a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">sll at sll-cube</a>:/home/pd-extended/externals/*miXed*$ vim Makefile.common<br>Line: 119<br>CFLAGS = *-fPIC* $(WARN_CFLAGS) $(OPT_CFLAGS) $(DEFINES) $(INCLUDES)<br>

<br>The -fPIC flag lets compile over 64 bit machines. With this changes I complied pd-extened with no problems.<br><br>Who can make this change?<br><br>Greetings,<br><br>Sergi.<br><br><br></pre></div></div><div style="margin: 0px;"> _______________________________________________</div><div style="margin: 0px;">Pd-dev mailing list</div><div style="margin: 0px;"><a href="mailto:Pd-dev@iem.at" target="_blank">Pd-dev@iem.at</a></div><div style="margin: 0px;"> <a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a></div> </blockquote></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div> <br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously.         - Benjamin Franklin</div> <br></span></span> </div><br></div></blockquote></div><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Computer science is no more related to the computer than astronomy is related to the telescope.      -Edsger Dykstra</div><br class="Apple-interchange-newline"></span> </div><br></body></html>